Changeset 173 for XMLIO_V2/dev/dev_rv/src/xmlio/xml_parser.cpp
- Timestamp:
- 04/13/11 15:15:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/xmlio/xml_parser.cpp
r152 r173 53 53 54 54 if (attributes.end() == attributes.find("id")) 55 { DEBUG("Le context ne sera pas traité car il n'est pas identifié !"); 56 continue; } 55 { 56 DEBUG("Le context ne sera pas traité car il n'est pas identifié !"); 57 continue; 58 } 57 59 58 60 CObjectFactory::SetCurrentContextId(attributes["id"]); 59 61 CGroupFactory::SetCurrentContextId(attributes["id"]); 60 62 61 if(CObjectFactory::HasObject<tree::CContext>(attributes["id"])) 62 { DEBUG("Le context ne sera pas traité car il existe déjà un autre context possédant le même nom !"); 63 continue; } 63 bool hasctxt = CObjectFactory::HasObject<tree::CContext>(attributes["id"]); 64 65 if(hasctxt) 66 { 67 DEBUG("Le context ne sera pas traité car " 68 << "il existe déjà un autre context possédant le même nom !"); 69 continue; 70 } 64 71 65 72 boost::shared_ptr<tree::CContext> context = 66 73 CObjectFactory::CreateObject<tree::CContext>(attributes["id"]); 67 CGroupFactory::AddChild(group_context, context);74 if (!hasctxt) CGroupFactory::AddChild(group_context, context); 68 75 context->parse(node); 69 76
Note: See TracChangeset
for help on using the changeset viewer.