Lade...
 

SMPDDI.CPP

SMPDDI.CPP

 

// DDI/MDI Generator // 10/30/95 10:15:24 // include <classix.hpp> include <sample.hpp> // class WRAPPER_A - data dictionary CXS_DDI_ENTRY WRAPPER_A::dataDictionary[] = {{ IDX_STRING, "name", 0, FALSE }, { IDX_SHORT, "x", 0, FALSE }, { IDX_SHORT, "y", 0, FALSE }, { IDX_NOTHING, } }; int WRAPPER_A::* WRAPPER_A::dataFieldPtr[] = {(int WRAPPER_A::*) &WRAPPER_A::name, (int WRAPPER_A::*) &WRAPPER_A::x, (int WRAPPER_A::*) &WRAPPER_A::y }; CXS_DDI_ENTRY *WRAPPER_A::GetDDI(void) { return dataDictionary;} int CX_CLASS::** WRAPPER_A::GetMPT(void) { return (int CX_CLASS::**) dataFieldPtr;} // class WRAPPER_A - method dictionary CXS_MDI_ENTRY WRAPPER_A::functionDictionary[] = {{ "Sum", { sgnINT, sgnVOID }}, { NULL, }, }; int (WRAPPER_A::* WRAPPER_A::methodPtr[])(int) = {(int (WRAPPER_A::*)(int)) WRAPPER_A::Sum }; CALL_METHOD(WRAPPER_A) // generic function CX_CLASS *WRAPPER_A::New(os_segment *_seg, os_typespec *_tspec) { CX_CLASS *object; ifdef _OBJECTSTORE_H_ object = new(_seg, _tspec) WRAPPER_A; else object = new WRAPPER_A endif return object; }