Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9924 in orxonox.OLD for branches/network/src/lib/lang/object_list.h


Ignore:
Timestamp:
Nov 9, 2006, 7:16:15 PM (17 years ago)
Author:
bensch
Message:

network: removed obsolete class_id_DEPRECATED.h and adapted the objectList… now the compile bugs have to be fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/lang/object_list.h

    r9909 r9924  
    3232 * @brief Use this macro to easily define a Class to store its own ObjectListDefinition
    3333 * @param ClassName: the Name of the Class.
    34  * @param ID: optional set a Fixed ID.
    35  */
    36 #define ObjectListDefinitionID(ClassName, ID) \
    37    ObjectList<ClassName> ClassName::_objectList(#ClassName, ID)
    38 
    39 /**
    40  * @brief Use this macro to easily define a Class to store its own ObjectListDefinition
    41  * @param ClassName: the Name of the Class.
    4234 */
    4335#define ObjectListDefinition(ClassName) \
    44     ObjectListDefinitionID(ClassName, -1)
     36    ObjectList<ClassName> ClassName::_objectList(#ClassName)
    4537
    4638class BaseObject;
     
    109101
    110102protected:
    111   ObjectListBase(const std::string& className, int id = -1);
     103  ObjectListBase(const std::string& className);
    112104  virtual ~ObjectListBase();
    113105
     
    133125  static NameMap*               _classesByName;     //!< A Map of all the classes in existance.
    134126  static std::list<std::string> _classNames;        //!< A list of all the registered ClassNames.
    135  
     127
    136128public:
    137129  static void replaceIDMap( const std::map<std::string, int>& str2id );
     
    203195
    204196public:
    205   ObjectList(const std::string& name, int id = -1);
     197  ObjectList(const std::string& name);
    206198  ~ObjectList();
    207199
     
    260252 */
    261253template <class T>
    262 ObjectList<T>::ObjectList(const std::string& name, int id)
    263     : ObjectListBase(name, id)
     254ObjectList<T>::ObjectList(const std::string& name)
     255    : ObjectListBase(name)
    264256{}
    265257
Note: See TracChangeset for help on using the changeset viewer.