Changes between Version 1 and Version 2 of code/howto/Identifier
- Timestamp:
- Oct 10, 2008, 1:39:10 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/howto/Identifier
v1 v2 53 53 }}} 54 54 55 Or in combination with a classname in a string: 56 {{{ 57 BaseObject* object = getSomeObject(); 58 std::string classname = getSomeClass(); 59 60 if (object->isA(ClassByString(classname))) 61 std::cout << "Object is a " << classname << "!" << std::endl; 62 }}} 63 55 64 Apart from isA(...), there are other comparision functions: 56 65 * isExactlyA