Changeset 1101 for XIOS/dev/branch_yushan/src/group_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/group_factory_impl.hpp
r591 r1101 70 70 CObjectFactory::SetCurrentContextId 71 71 (CGroupFactory::GetCurrentContextId()); 72 printf("SetCurrentContextId OK %d , %d, %s\n", id.size(), CGroupFactory::HasChild(group, id), id); 72 73 if (id.size() == 0) 73 74 { 74 boost::shared_ptr<typename U::RelChild> value = 75 CObjectFactory::CreateObject<typename U::RelChild>();75 boost::shared_ptr<typename U::RelChild> value = CObjectFactory::CreateObject<typename U::RelChild>(); 76 printf("boost::shared_ptr<typename U::RelChild> value OK\n"); 76 77 group->childList.insert(group->childList.end(), value.get()); 78 printf("group->childList.insert OK\n"); 77 79 group->childMap.insert(std::make_pair(value->getId(), value.get())); 80 printf("group->childMap.insert OK\n"); 78 81 return (value); 79 82 } 80 83 else if (CGroupFactory::HasChild(group, id)) 84 { 85 printf("has child\n"); 81 86 return (CGroupFactory::GetChild(group, id)); 87 } 82 88 else 83 89 { 84 boost::shared_ptr<typename U::RelChild> value = 85 CObjectFactory::CreateObject<typename U::RelChild>(id);90 boost::shared_ptr<typename U::RelChild> value = CObjectFactory::CreateObject<typename U::RelChild>(id); 91 printf("shared_ptr OK\n"); 86 92 group->childList.insert(group->childList.end(), value.get()); 93 printf("childList.insert OK\n"); 87 94 group->childMap.insert(std::make_pair(id, value.get())); 95 printf("childMap.insert OK\n"); 88 96 return (value); 89 97 }
Note: See TracChangeset
for help on using the changeset viewer.