This graph shows which files directly or indirectly include this file:

Defines | |
| #define | DECLARE_SUBCLASS(ThisType, BaseType) |
| #define | IMPLEMENT_SUBCLASS(ThisType, FORMNAME) |
| #define | IMPLEMENT_PARTIAL_SUBCLASS(ThisType, FORMNAME) |
| #define | IMPLEMENT_ABSTRACT_SUBCLASS(ThisType, FORMNAME) |
| #define | EMPTY_SLOTTABLE(ThisType) |
| #define | IMPLEMENT_EMPTY_SLOTTABLE_SUBCLASS(ThisType, FORMNAME) |
| #define | EMPTY_COPYDATA(ThisType) |
| #define | EMPTY_DELETEDATA(ThisType) |
| #define | EMPTY_SERIALIZER(ThisType) |
| #define | SET_SLOTTABLE slotTable = &slottable; |
| #define | BEGIN_SLOTTABLE(ThisType) const char* ThisType::slots[] = { |
| #define | END_SLOTTABLE(ThisType) |
| #define | BEGIN_SLOT_MAP(ThisType) |
| #define | END_SLOT_MAP() |
| #define | ON_SLOT(idx, setFunc, ObjType) |
| #define | BEGIN_EVENT_HANDLER(ThisType) |
| #define | END_EVENT_HANDLER() |
| #define | ON_EVENT_OBJ(token, onEvent, ObjType) |
| #define | ON_EVENT(token, onEvent) |
| #define | ON_ANYKEY_OBJ(onEvent, ObjType) |
| #define | ON_ANYKEY(onEvent) |
| #define BEGIN_EVENT_HANDLER | ( | ThisType | ) |
Value:
bool ThisType::event(const int _event, Eaagles::Basic::LcObject* const _obj) \ { \ bool _used = false;
| #define BEGIN_SLOT_MAP | ( | ThisType | ) |
Value:
bool ThisType::setSlotByIndex(const int slotindex, Eaagles::Basic::LcObject* const obj) \ { \ const int _n = BaseClass::getSlotTable().n(); \ if (slotindex <= _n) { \ return BaseClass::setSlotByIndex(slotindex,obj); \ } \ bool _ok = false; \ int _n1 = (slotindex - _n);
| #define BEGIN_SLOTTABLE | ( | ThisType | ) | const char* ThisType::slots[] = { |
BEGIN_SLOTTABLE() -- Standard SlotTable beginning.
| #define DECLARE_SUBCLASS | ( | ThisType, | |||
| BaseType | ) |
Value:
typedef BaseType BaseClass; \ public: ThisType(const ThisType& org); \ public: virtual ~ThisType(); \ public: virtual Eaagles::Basic::LcObject* clone() const; \ public: ThisType& operator=(const ThisType& org); \ protected: void copyData(const ThisType& org, const bool cc = false); \ protected: void deleteData(); \ public: virtual bool isClassType(const std::type_info& type) const; \ private: static const char* fname; \ public: static const char* getFormName(); \ public: virtual const char* formName() const; \ public: virtual bool isFormName(const char name[]) const; \ public: static const Eaagles::Basic::LcSlotTable& getSlotTable(); \ protected: virtual bool setSlotByIndex(const int slotindex, Eaagles::Basic::LcObject* const obj); \ protected: virtual Eaagles::Basic::LcObject* getSlotByIndex(const int slotindex); \ protected: static const Eaagles::Basic::LcSlotTable slottable; \ private: static const char* slots[]; \ private: static const int nslots; \ public: virtual std::ostream& \ serialize(std::ostream& sout, const int i = 0, const bool slotsOnly = false) const; \ private:
| #define EMPTY_COPYDATA | ( | ThisType | ) |
Value:
void ThisType::copyData(const ThisType& org, const bool) \ { \ BaseClass::copyData(org,false); \ }
| #define EMPTY_DELETEDATA | ( | ThisType | ) |
Value:
void ThisType::deleteData() \
{ \
BaseClass::deleteData(); \
}
| #define EMPTY_SERIALIZER | ( | ThisType | ) |
Value:
std::ostream& ThisType::serialize( \
std::ostream& sout, const int i, const bool slotsOnly) const \
{ \
int j = 0; \
if ( !slotsOnly ) { \
sout << "( " << fname << std::endl; \
j = 4; \
} \
BaseClass::serialize(sout,i+j,true); \
if ( !slotsOnly ) { \
indent(sout,i); \
sout << ")" << std::endl; \
} \
return sout; \
}
| #define EMPTY_SLOTTABLE | ( | ThisType | ) |
Value:
const char* ThisType::slots[] = { "" }; \ const int ThisType::nslots = 0; \ const Eaagles::Basic::LcSlotTable ThisType::slottable(0, 0, BaseClass::getSlotTable()); \ bool ThisType::setSlotByIndex(const int si, Eaagles::Basic::LcObject* const obj) \ { \ return BaseClass::setSlotByIndex(si,obj); \ } \ Eaagles::Basic::LcObject* ThisType::getSlotByIndex(const int si) \ { \ return BaseClass::getSlotByIndex(si); \ }
| #define END_EVENT_HANDLER | ( | ) |
| #define END_SLOT_MAP | ( | ) |
| #define END_SLOTTABLE | ( | ThisType | ) |
Value:
}; \
const int ThisType::nslots = (sizeof(slots)/sizeof(char*)); \
const Eaagles::Basic::LcSlotTable ThisType::slottable(ThisType::slots, ThisType::nslots, \
ThisType::BaseClass::getSlotTable());
| #define IMPLEMENT_ABSTRACT_SUBCLASS | ( | ThisType, | |||
| FORMNAME | ) |
Macro to set up abstract class implementation Same as IMPLEMENT_SUBCLASS() except that the clone function always returns a zero(0).
| #define IMPLEMENT_EMPTY_SLOTTABLE_SUBCLASS | ( | ThisType, | |||
| FORMNAME | ) |
Value:
IMPLEMENT_SUBCLASS(ThisType,FORMNAME) \ EMPTY_SLOTTABLE(ThisType)
| #define IMPLEMENT_PARTIAL_SUBCLASS | ( | ThisType, | |||
| FORMNAME | ) |
Value:
const char* ThisType::fname = FORMNAME; \ const char* ThisType::formName() const { return fname; } \ const char* ThisType::getFormName() { return fname; } \ bool ThisType::isFormName(const char name[]) const \ { \ if (name == 0) return false; \ if ( strcmp(fname,name) == 0 ) return true; \ else return ThisType::BaseClass::isFormName(name); \ } \ const Eaagles::Basic::LcSlotTable& ThisType::getSlotTable() { return slottable; } \ bool ThisType::isClassType(const std::type_info& type) const \ { \ if ( type == typeid(ThisType) ) return true; \ else return ThisType::BaseClass::isClassType(type); \ }
| #define IMPLEMENT_SUBCLASS | ( | ThisType, | |||
| FORMNAME | ) |
Macro to set up class implementation (defines defaults for all required functions)
| #define ON_ANYKEY | ( | onEvent | ) |
Value:
if (!_used && _event <= MAX_KEY_EVENT) { \ _used = onEvent(_event); \ }
| #define ON_ANYKEY_OBJ | ( | onEvent, | |||
| ObjType | ) |
Value:
if (!_used && _event <= MAX_KEY_EVENT && dynamic_cast<ObjType*>(_obj) != 0) { \ _used = onEvent(_event,((ObjType*)_obj)); \ }
| #define ON_EVENT | ( | token, | |||
| onEvent | ) |
| #define ON_EVENT_OBJ | ( | token, | |||
| onEvent, | |||||
| ObjType | ) |
| #define ON_SLOT | ( | idx, | |||
| setFunc, | |||||
| ObjType | ) |
Value:
if ( !_ok ) { \ ObjType* _msg = dynamic_cast<ObjType*>(obj); \ if (idx == _n1 && _msg != 0) { \ _ok = setFunc(_msg); \ } \ }
| #define SET_SLOTTABLE slotTable = &slottable; |
Used by constructors to setup slotTable data.
1.5.0