12 #if BOOST_VERSION >= 103900 
   13 #include <boost/make_shared.hpp> 
   14 #else  // BOOST_VERSION >= 103900 
   15 #include <boost/shared_ptr.hpp> 
   16 #endif // BOOST_VERSION >= 103900 
   27   STDAIR_ServiceContext::STDAIR_ServiceContext()
 
   28     : _cloneBomRoot (NULL), 
 
   29       _persistentBomRoot (NULL),
 
   30       _initType (ServiceInitialisationType::NOT_YET_INITIALISED) {
 
   36   STDAIR_ServiceContext::
 
   37   STDAIR_ServiceContext (
const STDAIR_ServiceContext& iServiceContext)
 
   38     : _cloneBomRoot (iServiceContext._cloneBomRoot),
 
   39       _persistentBomRoot (iServiceContext._persistentBomRoot),
 
   40       _initType (ServiceInitialisationType::NOT_YET_INITIALISED) {
 
   45   STDAIR_ServiceContext::~STDAIR_ServiceContext() {
 
   49   void STDAIR_ServiceContext::init() {
 
   56   void STDAIR_ServiceContext::initBomRoot() {
 
   62   void STDAIR_ServiceContext::initCloneBomRoot() {
 
   68   void STDAIR_ServiceContext::initConfigHolder() {
 
   69     _configHolderPtr = boost::make_shared<ConfigHolderStruct> ();
 
   73   const std::string STDAIR_ServiceContext::shortDisplay()
 const {
 
   74     std::ostringstream oStr;
 
   75     oStr << 
"STDAIR_ServiceContext -- " << _initType
 
   76          << 
" -- DB: " << _dbParams;
 
   81   const std::string STDAIR_ServiceContext::display()
 const {
 
   82     std::ostringstream oStr;
 
   83     oStr << shortDisplay();
 
   88   const std::string STDAIR_ServiceContext::describe()
 const {
 
   89     return shortDisplay();
 
   93   BomRoot& STDAIR_ServiceContext::getPersistentBomRoot()
 const {
 
   94     assert (_persistentBomRoot != NULL);
 
   95     return *_persistentBomRoot;
 
   99   BomRoot& STDAIR_ServiceContext::getCloneBomRoot()
 const {
 
  100     assert (_cloneBomRoot != NULL);
 
  101     return *_cloneBomRoot;
 
  105   ConfigHolderStruct& STDAIR_ServiceContext::getConfigHolder()
 const { 
 
  106     assert (_configHolderPtr != NULL);
 
  107     return *_configHolderPtr;
 
static FacBom & instance()
Handle on the StdAir library context. 
static FacCloneBom & instance()