7 #include <stdair/STDAIR_Service.hpp>
8 #include <stdair/service/Logger.hpp>
16 SIMCRS_ServiceContext::SIMCRS_ServiceContext ()
21 SIMCRS_ServiceContext::SIMCRS_ServiceContext (
const SIMCRS_ServiceContext&)
22 : _ownStdairService (false) {
26 SIMCRS_ServiceContext::SIMCRS_ServiceContext (
const CRSCode_T& iCRSCode)
27 : _CRSCode (iCRSCode) {
31 SIMCRS_ServiceContext::~SIMCRS_ServiceContext() {
35 const std::string SIMCRS_ServiceContext::shortDisplay()
const {
36 std::ostringstream oStr;
37 oStr <<
"SIMCRS_ServiceContext [" << _CRSCode
38 <<
"] - Owns StdAir service: " << _ownStdairService;
43 const std::string SIMCRS_ServiceContext::display()
const {
44 std::ostringstream oStr;
45 oStr << shortDisplay();
50 const std::string SIMCRS_ServiceContext::describe()
const {
51 return shortDisplay();
55 void SIMCRS_ServiceContext::reset() {
56 if (_ownStdairService ==
true) {
57 _stdairService.reset();