Last change
on this file since 2424 was
1601,
checked in by yushan, 6 years ago
|
branch_openmp merged with trunk r1597
|
-
Property copyright set to
Software name : XIOS (Xml I/O Server) http://forge.ipsl.jussieu.fr/ioserver Creation date : January 2009 Licence : CeCCIL version2 see license file in root directory : Licence_CeCILL_V2-en.txt or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement) CNRS/IPSL (Institut Pierre Simon Laplace) Project Manager : Yann Meurdesoif yann.meurdesoif@cea.fr
|
File size:
543 bytes
|
Line | |
---|
1 | #include "object_factory.hpp" |
---|
2 | |
---|
3 | namespace xios |
---|
4 | { |
---|
5 | /// ////////////////////// Définitions ////////////////////// /// |
---|
6 | |
---|
7 | StdString *CObjectFactory::CurrContext_ptr = 0; |
---|
8 | |
---|
9 | void CObjectFactory::SetCurrentContextId(const StdString & context) |
---|
10 | { |
---|
11 | if(CObjectFactory::CurrContext_ptr == 0 ) CObjectFactory::CurrContext_ptr = new StdString; |
---|
12 | CObjectFactory::CurrContext_ptr->assign(context); |
---|
13 | } |
---|
14 | |
---|
15 | StdString & CObjectFactory::GetCurrentContextId(void) |
---|
16 | { |
---|
17 | return (*CObjectFactory::CurrContext_ptr); |
---|
18 | } |
---|
19 | |
---|
20 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.