SEvMgr Logo  0.2.0
C++ Simulation-Oriented Discrete Event Management Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
SEVMGR_ServiceContext.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 #include <sstream>
7 // StdAir
8 #include <stdair/STDAIR_Service.hpp>
9 #include <stdair/basic/BasConst_General.hpp>
10 // SEvMgr
13 
14 namespace SEVMGR {
15 
16  // //////////////////////////////////////////////////////////////////////
17  SEVMGR_ServiceContext::SEVMGR_ServiceContext() {
18  }
19 
20  // //////////////////////////////////////////////////////////////////////
21  SEVMGR_ServiceContext::
22  SEVMGR_ServiceContext (const std::string& iServiceName) {
23  }
24 
25  // //////////////////////////////////////////////////////////////////////
26  SEVMGR_ServiceContext::~SEVMGR_ServiceContext() {
27  }
28 
29  // //////////////////////////////////////////////////////////////////////
30  const std::string SEVMGR_ServiceContext::shortDisplay() const {
31  std::ostringstream oStr;
32  oStr << "SEVMGR_ServiceContext -- Owns StdAir service: "
33  << _ownStdairService;
34  return oStr.str();
35  }
36 
37  // //////////////////////////////////////////////////////////////////////
38  const std::string SEVMGR_ServiceContext::display() const {
39  std::ostringstream oStr;
40  oStr << shortDisplay();
41  return oStr.str();
42  }
43 
44  // //////////////////////////////////////////////////////////////////////
45  const std::string SEVMGR_ServiceContext::describe() const {
46  return shortDisplay();
47  }
48 
49  // //////////////////////////////////////////////////////////////////////
50  void SEVMGR_ServiceContext::reset() {
51  if (_ownStdairService == true) {
52  _stdairService.reset();
53  }
54  }
55 
56 }