Update of /cvsroot/objecthandler/ObjectHandler/oh
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20509/oh
Modified Files:
object.hpp objecthandler.hpp
Log Message:
fix for gcc
Index: object.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/oh/object.hpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** object.hpp 5 Oct 2006 17:02:33 -0000 1.16
--- object.hpp 6 Oct 2006 07:57:35 -0000 1.17
***************
*** 39,55 ****
ObjHandler::ObjectHandler::instance().retrieveObject(NAME, ID);
- // convert a vector of strings to a vector of objects
- template <class ObjectClass>
- std::vector<boost::shared_ptr<ObjectClass> > getObjectVector(
- std::vector<std::string> objectIDs) {
- std::vector<boost::shared_ptr<ObjectClass> > ret;
- for (std::vector<std::string>::const_iterator i = objectIDs.begin();
- i != objectIDs.end(); i++) {
- OH_GET_OBJECT(objectPointer, *i, ObjectClass);
- ret.push_back(objectPointer);
- }
- return ret;
- }
-
// get a boost shared pointer to the client library object referenced by an ObjHandler::Object
#define OH_GET_REFERENCE( NAME, ID, OBJECT_CLASS, LIBRARY_CLASS ) \
--- 39,42 ----
Index: objecthandler.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/oh/objecthandler.hpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** objecthandler.hpp 4 Oct 2006 09:37:43 -0000 1.13
--- objecthandler.hpp 6 Oct 2006 07:57:35 -0000 1.14
***************
*** 106,109 ****
--- 106,122 ----
}
+ // convert a vector of strings to a vector of objects
+ template <class ObjectClass>
+ std::vector<boost::shared_ptr<ObjectClass> > getObjectVector(
+ std::vector<std::string> objectIDs) {
+ std::vector<boost::shared_ptr<ObjectClass> > ret;
+ for (std::vector<std::string>::const_iterator i = objectIDs.begin();
+ i != objectIDs.end(); i++) {
+ OH_GET_OBJECT(objectPointer, *i, ObjectClass);
+ ret.push_back(objectPointer);
+ }
+ return ret;
+ }
+
#endif
|