Ignore:
Timestamp:
09/21/11 09:42:30 (13 years ago)
Author:
hozdoba
Message:

Corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/common/src/xmlio/group_parser.hpp

    r219 r278  
    1313 
    1414      StdString name = node.getElementName(); 
     15      xml::THashAttributes attributes = node.getAttributes(); 
    1516      if (withAttr) 
     17      { 
    1618         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      } 
    1728 
    1829      // PARSING POUR GESTION DES ENFANTS 
    19       xml::THashAttributes attributes; 
    2030      boost::shared_ptr<V> group_ptr = (this->hasId()) 
    2131         ? CObjectFactory::GetObject<V>(this->getId()) 
     
    6171                  << "\' ne peut contenir qu'un objet de type \'" << V::GetName() 
    6272                  << "\' ou de type \'" << U::GetName() 
    63                   << "\' !"); 
     73                  << "\' (reçu : " << name << ") !"); 
    6474 
    6575         } while (node.goToNextElement()); 
Note: See TracChangeset for help on using the changeset viewer.