Changeset 1542 for XIOS/trunk/src/object_factory.hpp
- Timestamp:
- 06/13/18 16:48:53 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/object_factory.hpp
r769 r1542 2 2 #define __XIOS_CObjectFactory__ 3 3 4 /// boost headers /// 5 #include <boost/shared_ptr.hpp> 4 #include <memory> 6 5 7 6 /// XIOS headers /// … … 24 23 25 24 template <typename U> 26 static boost::shared_ptr<U> GetObject(const StdString & id);25 static std::shared_ptr<U> GetObject(const StdString & id); 27 26 28 27 template <typename U> 29 static boost::shared_ptr<U> GetObject(const StdString& context,const StdString & id);28 static std::shared_ptr<U> GetObject(const StdString& context,const StdString & id); 30 29 31 30 template <typename U> 32 static boost::shared_ptr<U> GetObject(const U * const object);31 static std::shared_ptr<U> GetObject(const U * const object); 33 32 34 33 template <typename U> … … 38 37 39 38 template <typename U> 40 static const std::vector< boost::shared_ptr<U> > &39 static const std::vector<std::shared_ptr<U> > & 41 40 GetObjectVector(const StdString & context = CObjectFactory::GetCurrentContextId()); 42 41 … … 50 49 /// Instanciateur /// 51 50 template <typename U> 52 static boost::shared_ptr<U> CreateObject(const StdString & id = StdString(""));51 static std::shared_ptr<U> CreateObject(const StdString & id = StdString("")); 53 52 54 53 template <typename U> static const StdString& GetUIdBase(void);
Note: See TracChangeset
for help on using the changeset viewer.