The following code shows the class declaration for the new class AsdkMyClass derived from AcDbObject.
class AsdkMyClass : public AcDbObject // // This class demonstrates custom objects. // // To keep it simple, this class has a single integer data // member. Get and set functions are provided for this // data member. // { public: ACRX_DECLARE_MEMBERS(AsdkMyClass); AsdkMyClass(): mIntval(0) {}; AsdkMyClass(const Adesk::Int16& val): mIntval(val) {}; Acad::ErrorStatus getData (Adesk::Int16&); Acad::ErrorStatus setData (Adesk::Int16); virtual Acad::ErrorStatus dwgInFields (AcDbDwgFiler*); virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler*) const; virtual Acad::ErrorStatus dxfInFields (AcDbDxfFiler*); virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler*) const; private: Adesk::Int16 mIntval; };