Changeset 346 for XIOS/trunk/src/object_template_impl.hpp
- Timestamp:
- 04/12/12 17:02:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/object_template_impl.hpp
r345 r346 146 146 { 147 147 std::vector<boost::shared_ptr<T> > & avect = 148 CObjectTemplate<T>::GetAllVectobject(C ObjectFactory::GetCurrentContextId());148 CObjectTemplate<T>::GetAllVectobject(CContext::getCurrent()->getId()); 149 149 typename std::vector<boost::shared_ptr<T> >::iterator 150 150 it = avect.begin(), end = avect.end(); … … 168 168 void CObjectTemplate<T>::sendAttributToServer(CAttribute& attr) 169 169 { 170 shared_ptr<CContext> context=C ObjectFactory::GetObject<CContext>(CObjectFactory::GetCurrentContextId()) ;170 shared_ptr<CContext> context=CContext::getCurrent() ; 171 171 172 172 if (!context->hasServer) … … 232 232 233 233 template <typename T> 234 bool CObjectTemplate<T>::has(const string& contextId, const string & id) 235 { 236 return CObjectFactory::HasObject<T>(contextId,id) ; 237 } 238 239 template <typename T> 234 240 boost::shared_ptr<T> CObjectTemplate<T>::get(const string & id) 235 241 { 236 242 return CObjectFactory::GetObject<T>(id) ; 243 } 244 245 template <typename T> 246 boost::shared_ptr<T> CObjectTemplate<T>::get(const T* ptr) 247 { 248 return CObjectFactory::GetObject<T>(ptr) ; 249 } 250 251 252 template <typename T> 253 const vector<boost::shared_ptr<T> >& CObjectTemplate<T>::getAll() 254 { 255 return CObjectFactory::GetObjectVector<T>() ; 256 } 257 258 template <typename T> 259 const vector<boost::shared_ptr<T> >& CObjectTemplate<T>::getAll(const string & id) 260 { 261 return CObjectFactory::GetObjectVector<T>(id) ; 262 } 263 264 template <typename T> 265 boost::shared_ptr<T> CObjectTemplate<T>::get(const string& contextId, const string & id) 266 { 267 return CObjectFactory::GetObject<T>(contextId,id) ; 237 268 } 238 269 … … 247 278 { 248 279 return CObjectFactory::GetObject<T>((T*)this) ; 280 // return shared_ptr<T>((T*)this) ; 249 281 } 250 282
Note: See TracChangeset
for help on using the changeset viewer.