Changeset 108 for XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
- Timestamp:
- 06/18/10 14:33:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
r107 r108 16 16 static void ShowTree(ostream& os = std::clog) 17 17 { 18 clog << "<?xml version=\"1.0\"?>" << std::endl;19 clog << "<simulation>" << std::endl;18 clog << NIndent << "<?xml version=\"1.0\"?>" << std::endl; 19 clog << NIndent << "<"<< Context::GetRootName() << ">" << std::endl; 20 20 HashMap<string, StrHashMap<Context> > &AllListContext = Context::GetAllListObject(); 21 21 for (HashMap<string, StrHashMap<Context> >::Iterator it = AllListContext.begin(); it != AllListContext.end(); it++) 22 22 // On sort chacun des contextes successivement. 23 clog << *((*it).second)[(*it).first] << std::endl;24 clog << "</simulation>" << std::endl ;23 { Context::SetCurrentContext((*it).first); clog << *((*it).second)[(*it).first] << std::endl; } 24 clog << NIndent << "</" << Context::GetRootName() << ">" << std::endl ; 25 25 } 26 26 … … 36 36 HashMap<string, StrHashMap<Context> > &AllListContext = Context::GetAllListObject(); 37 37 for (HashMap<string, StrHashMap<Context> >::Iterator it = AllListContext.begin(); it != AllListContext.end(); it++) 38 // Résolution des héritages des descendands (cà d des héritages de groupes) pour chacun des contextes. 38 { 39 // Résolution des héritages descendants (cà d des héritages de groupes) pour chacun des contextes. 40 Context::SetCurrentContext((*it).first); 39 41 ((*it).second)[(*it).first]->resolveDescInheritance(); 42 43 // Résolution des héritages par référence au niveau des fichiers 44 const std::vector<CFile*>& allFiles = CFile::GetCurrentListObject().getVector(); 45 for (unsigned int i = 0; i < allFiles.size(); i++) allFiles[i]->resolveFieldRefInheritance(); 46 } 40 47 } 41 48 … … 113 120 114 121 static string GetName(void) {return ("context"); } 122 static string GetRootName(void) {return ("simulation"); } 115 123 116 124 virtual bool hasChild(void) const
Note: See TracChangeset
for help on using the changeset viewer.