Changeset 278 for XMLIO_V2/dev/common/src/xmlio/group_parser.hpp
- Timestamp:
- 09/21/11 09:42:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/common/src/xmlio/group_parser.hpp
r219 r278 13 13 14 14 StdString name = node.getElementName(); 15 xml::THashAttributes attributes = node.getAttributes(); 15 16 if (withAttr) 17 { 16 18 CGroupTemplate<U, V, W>::SuperClass::parse(node); 19 if (attributes.end() != attributes.find("src")) 20 { 21 StdIFStream ifs ( attributes["src"].c_str() , StdIFStream::in ); 22 if (!ifs.good()) 23 ERROR("CGroupTemplate<U, V, W>::parse(xml::CXMLNode & node, bool withAttr)", 24 << "[ filename = " << attributes["src"] << " ] Bad xml stream !"); 25 xml::CXMLParser::ParseInclude(ifs, *this); 26 } 27 } 17 28 18 29 // PARSING POUR GESTION DES ENFANTS 19 xml::THashAttributes attributes;20 30 boost::shared_ptr<V> group_ptr = (this->hasId()) 21 31 ? CObjectFactory::GetObject<V>(this->getId()) … … 61 71 << "\' ne peut contenir qu'un objet de type \'" << V::GetName() 62 72 << "\' ou de type \'" << U::GetName() 63 << "\' !");73 << "\' (reçu : " << name << ") !"); 64 74 65 75 } while (node.goToNextElement());
Note: See TracChangeset
for help on using the changeset viewer.