Changeset 352 for XIOS/trunk/src/object_factory.hpp
- Timestamp:
- 07/09/12 11:33:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/object_factory.hpp
r335 r352 24 24 25 25 template <typename U> 26 static inlineboost::shared_ptr<U> GetObject(const StdString & id);26 static boost::shared_ptr<U> GetObject(const StdString & id); 27 27 28 28 template <typename U> 29 static inlineboost::shared_ptr<U> GetObject(const StdString& context,const StdString & id);29 static boost::shared_ptr<U> GetObject(const StdString& context,const StdString & id); 30 30 31 31 template <typename U> 32 static inlineboost::shared_ptr<U> GetObject(const U * const object);32 static boost::shared_ptr<U> GetObject(const U * const object); 33 33 34 34 template <typename U> 35 static inlineint GetObjectNum(void);35 static int GetObjectNum(void); 36 36 template <typename U> 37 static inlineint GetObjectIdNum(void);37 static int GetObjectIdNum(void); 38 38 39 39 template <typename U> 40 static inlineconst std::vector<boost::shared_ptr<U> > &40 static const std::vector<boost::shared_ptr<U> > & 41 41 GetObjectVector(const StdString & context = CObjectFactory::GetCurrentContextId()); 42 42 43 43 /// Tests /// 44 44 template <typename U> 45 static inlinebool HasObject(const StdString & id);45 static bool HasObject(const StdString & id); 46 46 47 47 template <typename U> 48 static inlinebool HasObject(const StdString& context,const StdString & id);48 static bool HasObject(const StdString& context,const StdString & id); 49 49 50 50 /// Instanciateur /// 51 51 template <typename U> 52 static inlineboost::shared_ptr<U> CreateObject(const StdString & id = StdString(""));52 static boost::shared_ptr<U> CreateObject(const StdString & id = StdString("")); 53 53 54 template <typename U> static inlineStdString GenUId(void) ;54 template <typename U> static StdString GenUId(void) ; 55 55 56 56 private : … … 62 62 } // namespace xios 63 63 64 #include "object_factory_impl.hpp"64 //#include "object_factory_impl.hpp" 65 65 66 66 #endif // __XMLIO_CObjectFactory__
Note: See TracChangeset
for help on using the changeset viewer.