Logo Search packages:      
Sourcecode: icu version File versions  Download package

#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION (   myClass)
Value:
UClassID U_EXPORT2 myClass::getStaticClassID() { \
        static char classID = 0; \
        return (UClassID)&classID; \
    } \
    UClassID myClass::getDynamicClassID() const \
    { return myClass::getStaticClassID(); }

This is a simple macro to add ICU RTTI to an ICU object implementation. This does not go into the header. This should only be used in *.cpp files.

Parameters:
myClassThe name of the class that needs RTTI defined.

Definition at line 297 of file uobject.h.


Generated by  Doxygen 1.6.0   Back to index