Changeset 1101 for XIOS/dev/branch_yushan/src/object_factory_impl.hpp
- Timestamp:
- 04/21/17 13:53:33 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/object_factory_impl.hpp
r1088 r1101 122 122 if(U::AllVectObj == NULL) U::AllVectObj = new xios_map<StdString, std::vector<boost::shared_ptr<U> > >; 123 123 if(U::AllMapObj == NULL) U::AllMapObj = new xios_map<StdString, xios_map<StdString, boost::shared_ptr<U> > >; 124 125 printf("so far so good : %d %d %d\n", CurrContext_ptr->empty(), CObjectFactory::HasObject<U>(id), id.empty()); 124 126 125 127 if (CurrContext_ptr->empty()) … … 134 136 { 135 137 boost::shared_ptr<U> value(new U(id.empty() ? CObjectFactory::GenUId<U>() : id)); 136 138 printf("in CreateObject, value OK\n"); 137 139 (* U::AllVectObj)[*CObjectFactory::CurrContext_ptr].insert((*U::AllVectObj)[*CObjectFactory::CurrContext_ptr].end(), value); 140 printf("AllVectObj insert OK\n"); 138 141 (* U::AllMapObj) [*CObjectFactory::CurrContext_ptr].insert(std::make_pair(value->getId(), value)); 142 printf("AllMapObj insert OK\n"); 139 143 140 144 return value;
Note: See TracChangeset
for help on using the changeset viewer.