Changeset 108 for XMLIO_V2/dev/dev_rv/src/XMLIO/xmlio_group_template.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/xmlio_group_template.hpp
r107 r108 51 51 groupList.addObject(&obj); 52 52 53 return ( GroupTemplate<T, U>::GetObject(_id));53 return (obj); 54 54 } 55 55 … … 89 89 90 90 const StrHashMap<T*>& getCurrentListChild(void) { return (childList); } 91 const vector<T*>& getCurrentVectorChild(void) { return (childList.getVector()); } 91 92 92 93 size_t getNbChild() const {return (childList.getVectorSize()); } 94 95 void getAllChildren(std::vector<T*>& _allc ) 96 { 97 const vector<GroupTemplate<T, U>*>& groupvect = groupList.getVector(); 98 _allc.insert (_allc.end(), getCurrentVectorChild().begin(), getCurrentVectorChild().end()); 99 100 for(unsigned int i = 0; i < groupvect.size() ; i++) 101 groupvect[i] -> getAllChildren(_allc); 102 } 93 103 94 104 virtual ~GroupTemplate() … … 108 118 {// Si l'identifiant est défini. 109 119 if (V::HasObject(attributes["id"])) 110 WARNING("Dans le context actuel, une instance de type "+V::GetName()+" nommée "+attributes["id"]+" existe déjà , le second fera référence au premier par défaut !"); // TODO TODO120 WARNING("Dans le context actuel, une instance de type "+V::GetName()+" nommée \""+attributes["id"]+"\" existe déjà , le second fera référence au premier par défaut !"); // TODO TODO 111 121 instance_ptr = (V*)(&createGroup(attributes["id"])); 112 122 instance_ptr->parse(_node); … … 126 136 {// Si l'identifiant est défini. 127 137 if (V::HasObject(attributes["id"])) 128 WARNING("Dans le context actuel, une instance de type "+V::GetName()+" nommée "+attributes["id"]+" existe déjà , le second fera référence au premier par défaut !"); // TODO TODO138 WARNING("Dans le context actuel, une instance de type "+V::GetName()+" nommée \""+attributes["id"]+"\" existe déjà , le second fera référence au premier par défaut !"); // TODO TODO 129 139 instance_ptr = (V*)(&createChild(attributes["id"])); 130 140 instance_ptr->parse(_node);
Note: See TracChangeset
for help on using the changeset viewer.