Changeset 137 for XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
- Timestamp:
- 11/17/10 14:40:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/object_template.hpp
r128 r137 147 147 } 148 148 149 static const StrHashMap<T>& GetCurrentListObject(void) { return (AllListObj[CurrContext]); } 150 static Poco::HashMap<string, StrHashMap<T> >& GetAllListObject(void) { return (AllListObj); } 151 152 static void SetContext(const string& id) { ObjectTemplate<T>::CurrContext = id; } 153 154 static string& GetCurrentContextId(void) { return (ObjectTemplate<T>::CurrContext); } 149 static const StrHashMap<T>& GetCurrentListObject(void) 150 { return (AllListObj[CurrContext]); } 151 152 static Poco::HashMap<string, StrHashMap<T> >& GetAllListObject(void) 153 { return (AllListObj); } 154 155 static void SetContext(const string& id) 156 { ObjectTemplate<T>::CurrContext = id; } 157 158 static string& GetCurrentContextId(void) 159 { return (ObjectTemplate<T>::CurrContext); } 155 160 156 161 protected : … … 179 184 } 180 185 181 template <class V> static V* CreateInstanceAndParse(XMLNode& _node, const char* defaultId, bool parseAttr = true ) 186 template <class V> 187 static V* CreateInstanceAndParse(XMLNode& _node, const char* defaultId, bool parseAttr = true ) 182 188 { 183 189 V* instance_ptr = NULL; string did(defaultId);
Note: See TracChangeset
for help on using the changeset viewer.