Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 8:06:39 PM (19 years ago)
Author:
bensch
Message:

renamed newclassid to classid and newobjectlist to objectlist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/lang/new_class_id.h

    r9709 r9715  
    1010#include <string>
    1111
    12 class NewObjectListBase;
     12class ObjectListBase;
    1313
    1414//! A class to dynamically allocate ClassID's and to support a isA operator
    1515/**
    16  * A NewClassID can only be aquired over a NewObjectList,
     16 * A ClassID can only be aquired over a ObjectList,
    1717 * thus enabling the developer to have permanent access to the correct ID and ClassName
    1818 *
    19  * The Idea behind this concept is, that storing a NewClassID that changes its internal state
    20  * all NewClassID's will be updated correctly.
     19 * The Idea behind this concept is, that storing a ClassID that changes its internal state
     20 * all ClassID's will be updated correctly.
    2121 *
    22  * Since the Existance of any NewObjectList is a requirement during the working process all
     22 * Since the Existance of any ObjectList is a requirement during the working process all
    2323 * ID's should reference a valid ID and ClassName
    2424 */
    25 class NewClassID
     25class ClassID
    2626{
    2727public:
    28   NewClassID();
    29   NewClassID(const NewObjectListBase* const id);
     28  ClassID();
     29  ClassID(const ObjectListBase* const id);
    3030  /// the copy constructor is also defined implicitely.
    3131
     
    3636
    3737  /** @param id the id to compare @returns true on match (match is same ID) @brief compares two id's */
    38   bool operator==(const NewClassID& id) const { return *_id == *id._id /* || _name == id._name */; };
     38  bool operator==(const ClassID& id) const { return *_id == *id._id /* || _name == id._name */; };
    3939  /** @param id the id to compare @returns true on match (match is same ID) @brief compares two id's */
    4040  bool operator==(int id) const { return *_id == id; };
     
    4242  bool operator==(const std::string& name) const { return *_name == name; };
    4343  /** @param id the id to compare @returns false on match (match is same ID) @brief compares two id's */
    44   bool operator!=(const NewClassID& id) const { return *_id != *id._id /* && _name != id._name*/;  };
     44  bool operator!=(const ClassID& id) const { return *_id != *id._id /* && _name != id._name*/;  };
    4545  /** @param id the id to compare @returns false on match (match is same ID) @brief compares two id's */
    4646  bool operator!=(int id) const { return *_id != id; };
     
    6161public:
    6262  /** @returns the NullClass' ID. */
    63   static const NewClassID& classID() { return NullClass::_classID; }
     63  static const ClassID& classID() { return NullClass::_classID; }
    6464  /** @param id the ID to acquire @param name the name to acquire @brief acquires the ID of this Class */
    6565  static void acquireID(const int*& id, const std::string*& name) { id = &_nullID; name = &_nullName; };
     
    6969
    7070private:
    71   static NewClassID         _classID;      //!< The NullClass' ID
     71  static ClassID         _classID;      //!< The NullClass' ID
    7272  static const std::string  _nullName;     //!< The NullClass' Name ("NullClass")
    7373  static int                _nullID;       //!< The NullClass' ID
Note: See TracChangeset for help on using the changeset viewer.