SourcePro : Essential Tools Module User's Guide : Collection Classes : Creating an RWCollectable Object : Add RW_DECLARE_COLLECTABLE_CLASS() to your Class Declaration
Add RW_DECLARE_COLLECTABLE_CLASS() to your Class Declaration
The example in Bus Example Code includes the macro invocation RW_DECLARE_COLLECTABLE_CLASS(USER_MODULE, Bus) in the declaration for Bus. You must put this macro in your class declaration, using the class name as the argument. Using the macro guarantees that all necessary member functions are declared correctly.