Changeset 1601 for XIOS/dev/dev_trunk_omp/src/object_factory.cpp
- Timestamp:
- 11/19/18 15:52:54 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_trunk_omp/src/object_factory.cpp
r501 r1601 5 5 /// ////////////////////// Définitions ////////////////////// /// 6 6 7 StdString CObjectFactory::CurrContext("");7 StdString *CObjectFactory::CurrContext_ptr = 0; 8 8 9 9 void CObjectFactory::SetCurrentContextId(const StdString & context) 10 { CObjectFactory::CurrContext = context; } 10 { 11 if(CObjectFactory::CurrContext_ptr == 0 ) CObjectFactory::CurrContext_ptr = new StdString; 12 CObjectFactory::CurrContext_ptr->assign(context); 13 } 11 14 12 15 StdString & CObjectFactory::GetCurrentContextId(void) 13 { return (CObjectFactory::CurrContext); } 16 { 17 return (*CObjectFactory::CurrContext_ptr); 18 } 14 19 15 20 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.