Changeset 1134 for XIOS/dev/branch_yushan_merged/src/group_factory.cpp
- Timestamp:
- 05/16/17 17:54:30 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan_merged/src/group_factory.cpp
r501 r1134 4 4 { 5 5 /// ////////////////////// Définitions ////////////////////// /// 6 StdString CGroupFactory::CurrContext("");6 StdString *CGroupFactory::CurrContext_ptr = new StdString; 7 7 8 8 void CGroupFactory::SetCurrentContextId(const StdString & context) 9 { 10 CGroupFactory::CurrContext = context; 9 { 10 if(CGroupFactory::CurrContext_ptr == NULL ) CGroupFactory::CurrContext_ptr = new StdString; 11 CGroupFactory::CurrContext_ptr->assign(context); 11 12 } 12 13 13 14 StdString & CGroupFactory::GetCurrentContextId(void) 14 15 { 15 return ( CGroupFactory::CurrContext);16 return (*CGroupFactory::CurrContext_ptr); 16 17 } 17 18
Note: See TracChangeset
for help on using the changeset viewer.