Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 1 and Version 2 of code/howto/Identifier


Ignore:
Timestamp:
Oct 10, 2008, 1:39:10 AM (16 years ago)
Author:
landauf
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/howto/Identifier

    v1 v2  
    5353}}}
    5454
     55Or in combination with a classname in a string:
     56{{{
     57BaseObject* object    = getSomeObject();
     58std::string classname = getSomeClass();
     59
     60if (object->isA(ClassByString(classname)))
     61    std::cout << "Object is a " << classname << "!" << std::endl;
     62}}}
     63
    5564Apart from isA(...), there are other comparision functions:
    5665 * isExactlyA