kbe/src/lib/dependencies/log4cxx/site/apidocs/object_8h.html
| | |
| | namespace | log4cxx | | namespace | log4cxx::helpers | |
|
| class | Object |
| | base class for java-like objects. More...
|
| class | Object::ClazzObject |
|
| | #define | DECLARE_ABSTRACT_LOG4CXX_OBJECT(object) | | #define | DECLARE_LOG4CXX_OBJECT(object) | | #define | DECLARE_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(object, class) | | #define | IMPLEMENT_LOG4CXX_OBJECT(object) | | #define | IMPLEMENT_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS(object, class) | | #define | BEGIN_LOG4CXX_CAST_MAP() | | #define | END_LOG4CXX_CAST_MAP() | | #define | LOG4CXX_CAST_ENTRY(Interface) if (&clazz == &Interface::getStaticClass()) return (const Interface *)this; | | #define | LOG4CXX_CAST_ENTRY2(Interface, interface2) if (&clazz == &Interface::getStaticClass()) return (Interface *)(interface2 *)this; | | #define | LOG4CXX_CAST_ENTRY_CHAIN(Interface) | |
| | | log4cxx::helpers::LOG4CXX_PTR_DEF (Object) |
|
| #define BEGIN_LOG4CXX_CAST_MAP | ( | | ) | |
|
| |
Value:
constvoid* cast(consthelpers::Class& clazz)const\
{\constvoid* object = 0;\if(&clazz == &helpers::Object::getStaticClass())return(consthelpers::Object *)this;
|
|
| #define DECLARE_ABSTRACT_LOG4CXX_OBJECT | ( | object | | ) | |
|
| |
Value:
public:\class Clazz##object :publichelpers::Class\
{\public:\
Clazz##object() : helpers::Class() {}\virtual~Clazz##object() {}\virtual[log4cxx::LogString](namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8)getName() const {returnLOG4CXX_STR(#object); } \
};\virtualconsthelpers::Class& getClass()const;\staticconsthelpers::Class& getStaticClass(); \staticconst[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& registerClass();
|
|
| #define DECLARE_LOG4CXX_OBJECT | ( | object | | ) | |
|
| |
Value:
public:\class Clazz##object :publichelpers::Class\
{\public:\
Clazz##object() : helpers::Class() {}\virtual~Clazz##object() {}\virtual[log4cxx::LogString](namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8)getName() const {returnLOG4CXX_STR(#object); } \virtual[helpers::ObjectPtr](namespacelog4cxx_1_1helpers.html#b6a6ce8f0ab4ed49ed45fad8cd9ea177)newInstance() const\
{\returnnewobject();\
}\
};\virtualconsthelpers::Class& getClass()const;\staticconsthelpers::Class& getStaticClass(); \staticconst[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& registerClass();
|
|
| #define DECLARE_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS | ( | object, | | | | class | | ) | |
|
| |
Value:
public:\virtualconsthelpers::Class& getClass()const;\staticconsthelpers::Class& getStaticClass();\staticconst[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& registerClass();
|
|
| #define END_LOG4CXX_CAST_MAP | ( | | ) | |
|
| |
Value:
returnobject;\
}\boolinstanceof(consthelpers::Class& clazz)const\
{returncast(clazz) != 0; }
|
|
| #define IMPLEMENT_LOG4CXX_OBJECT | ( | object | | ) | |
|
| |
Value:
const[log4cxx::helpers::Class](classlog4cxx_1_1helpers_1_1_class.html)& object::getClass() const {returngetStaticClass(); }\const[log4cxx::helpers::Class](classlog4cxx_1_1helpers_1_1_class.html)& object::getStaticClass() { \staticClazz##object theClass; \returntheClass; \
} \const[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& object::registerClass() { \static[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)classReg(object::getStaticClass); \returnclassReg; \
}\namespace log4cxx {namespace classes { \const[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& object##Registration = object::registerClass(); \
} }
|
|
| #define IMPLEMENT_LOG4CXX_OBJECT_WITH_CUSTOM_CLASS | ( | object, | | | | class | | ) | |
|
| |
Value:
const[log4cxx::helpers::Class](classlog4cxx_1_1helpers_1_1_class.html)& object::getClass() const {returngetStaticClass(); }\const[log4cxx::helpers::Class](classlog4cxx_1_1helpers_1_1_class.html)& object::getStaticClass() { \staticclass theClass; \returntheClass; \
} \const[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& object::registerClass() { \static[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)classReg(object::getStaticClass); \returnclassReg; \
}\namespace log4cxx {namespace classes { \const[log4cxx::helpers::ClassRegistration](classlog4cxx_1_1helpers_1_1_class_registration.html)& object##Registration = object::registerClass(); \
} }
|
|
| #define LOG4CXX_CAST_ENTRY | ( | Interface | | ) | if (&clazz == &Interface::getStaticClass()) return (const Interface *)this; |
|
| |
|
|
| #define LOG4CXX_CAST_ENTRY2 | ( | Interface, | | | | interface2 | | ) | if (&clazz == &Interface::getStaticClass()) return (Interface *)(interface2 *)this; |
|
| |
|
|
| #define LOG4CXX_CAST_ENTRY_CHAIN | ( | Interface | | ) | |
|
| |
Value:
object = Interface::cast(clazz);\if(object != 0)returnobject;
|