source: XIOS/dev/branch_yushan/src/object_factory.cpp @ 1088

Last change on this file since 1088 was 1088, checked in by yushan, 5 years ago

save

  • 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: 590 bytes
Line 
1#include "object_factory.hpp"
2
3namespace xios
4{
5   /// ////////////////////// Définitions ////////////////////// ///
6
7   StdString CObjectFactory::CurrContext("");
8         StdString *CObjectFactory::CurrContext_ptr = new StdString;
9
10   void CObjectFactory::SetCurrentContextId(const StdString & context)
11   { 
12         CObjectFactory::CurrContext = context; 
13         *CObjectFactory::CurrContext_ptr = context; 
14   }
15
16   StdString & CObjectFactory::GetCurrentContextId(void)
17   { 
18         //return (CObjectFactory::CurrContext);
19         return (*CObjectFactory::CurrContext_ptr); 
20   }
21
22} // namespace xios
Note: See TracBrowser for help on using the repository browser.