Changeset 346 for XIOS/trunk/src/xml_parser.cpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/xml_parser.cpp
r345 r346 52 52 do 53 53 { 54 boost::shared_ptr<CContextGroup> group_context = 55 CContext::GetContextGroup();54 boost::shared_ptr<CContextGroup> group_context = CContext::getRoot() ; 55 56 56 attributes = node.getAttributes(); 57 57 … … 62 62 } 63 63 64 CObjectFactory::SetCurrentContextId(attributes["id"]); 65 CGroupFactory::SetCurrentContextId(attributes["id"]); 64 CContext::setCurrent(attributes["id"]) ; 66 65 67 bool hasctxt = C ObjectFactory::HasObject<CContext>(attributes["id"]);66 bool hasctxt = CContext::has(attributes["id"]); 68 67 69 68 if(hasctxt) … … 74 73 } 75 74 76 boost::shared_ptr<CContext> context = 77 CObjectFactory::CreateObject<CContext>(attributes["id"]); 78 if (!hasctxt) CGroupFactory::AddChild(group_context, context); 75 boost::shared_ptr<CContext> context = CContext::create(attributes["id"]); 76 // if (!hasctxt) group_context->addChild(context); 79 77 context->parse(node); 80 78
Note: See TracChangeset
for help on using the changeset viewer.