SEvMgr Logo  0.2.0
C++ Simulation-Oriented Discrete Event Management Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
SEVMGR_ServiceContext.cpp
Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <cassert>
00006 #include <sstream>
00007 // StdAir
00008 #include <stdair/STDAIR_Service.hpp>
00009 #include <stdair/basic/BasConst_General.hpp>
00010 // SEvMgr
00011 #include <sevmgr/basic/BasConst_EventQueueManager.hpp>
00012 #include <sevmgr/service/SEVMGR_ServiceContext.hpp>
00013 
00014 namespace SEVMGR {
00015 
00016   // //////////////////////////////////////////////////////////////////////
00017   SEVMGR_ServiceContext::SEVMGR_ServiceContext() {
00018   }
00019 
00020   // //////////////////////////////////////////////////////////////////////
00021   SEVMGR_ServiceContext::
00022   SEVMGR_ServiceContext (const std::string& iServiceName) {
00023   }
00024 
00025   // //////////////////////////////////////////////////////////////////////
00026   SEVMGR_ServiceContext::~SEVMGR_ServiceContext() {
00027   }
00028   
00029   // //////////////////////////////////////////////////////////////////////
00030   const std::string SEVMGR_ServiceContext::shortDisplay() const {
00031     std::ostringstream oStr;
00032     oStr << "SEVMGR_ServiceContext -- Owns StdAir service: "
00033          << _ownStdairService;
00034     return oStr.str();
00035   }
00036 
00037   // //////////////////////////////////////////////////////////////////////
00038   const std::string SEVMGR_ServiceContext::display() const {
00039     std::ostringstream oStr;
00040     oStr << shortDisplay();
00041     return oStr.str();
00042   }
00043 
00044   // //////////////////////////////////////////////////////////////////////
00045   const std::string SEVMGR_ServiceContext::describe() const {
00046     return shortDisplay();
00047   }
00048 
00049   // //////////////////////////////////////////////////////////////////////
00050   void SEVMGR_ServiceContext::reset() {
00051     if (_ownStdairService == true) {
00052       _stdairService.reset();
00053     }
00054   }
00055 
00056 }