Definition in file BaseObject.h.
#include "NamedObject.h"
#include "PackString.h"
#include "VirtualMachine.h"
Go to the source code of this file.
Classes | |
class | BaseObject |
Virtual Base class for all objects managed in a BaseContext.
| |
class | BaseObject::ClassDescription |
BaseObject Nested class that describes each BaseObject and inherited class statically. It is defined automaticaly by macros BASEOBJECT_DECLARE_CLASS in class definition. More... | |
class | BaseObject::PreviewConfiguration |
Through PreviewConfiguration, ProcessPreview() can read information from an editor, on how the object preview should look like. The data can be used (or not) in a way or another, and the way the editor change them may vary. It is a public nested class. More... | |
class | BaseObject::ToolMethodCell |
Register a tool method. It is a private Nested class that manage the known ToolMethod in edition mode. More... | |
Defines | |
#define | BASEOBJECT_DEFINE_CLASS(_ClassName) |
This macro is used by all class inherited from BaseObject to create their class descriptor. Then this description is used for Class registration to a context. Use BASEOBJECT_DEFINE_CLASS in the .h and use BASEOBJECT_DECLARE_CLASS in the cpp. | |
#define | BASEOBJECT_DEFINE_VIRTUALCLASS(_ClassName) |
This macro is used by all class inherited from BaseObject to create their class descriptor. Then this description is used for Class registration to a context. Use BASEOBJECT_DEFINE_VIRTUALCLASS in the .h and use BASEOBJECT_DECLARE_VIRTUALCLASS in the cpp. | |
#define | BASEOBJECT_DECLARE_CLASS(_idname, _ClassName, _superClassName, _displayName, _defaultObjectName, _helpDescription) |
This macro is used by all class inherited from BaseObject to create their class descriptor. Then this description is used for Class registration to a context. You specify a char string static class name independant of your real C++ class name, and the C++ class name of your class, and the class you inherit from. | |
#define | BASEOBJECT_DECLARE_VIRTUALCLASS(_idname, _ClassName, _superClassName) |
Same as BASEOBJECT_DECLARE_CLASS , but for virtual, uninstanciable, classes. | |
#define | BASEOBJECT_REGISTER_TOOLMETHOD(_NewMethodID, _MethodflagInfo, _pShortDisplayName, _pDisplayHelp) RegisterToolMethod(_NewMethodID,_MethodflagInfo,_pShortDisplayName,_pDisplayHelp); |
Macro that make accessible a tool method for this class. It must be used in constructors. See RegisterToolMethod(). | |
#define | BASEOBJECT_CREATEINTERNAL_EXPLICIT_ERROR(_string) m_LastCreationErrorString.Set(_string); |
Macro to be used in CreateInternal() construction function before a call to "return false" when the construction fails, to explicit why the object couldn't be built. For memory allocation error, use BASEOBJECT_CREATEINTERNAL_EXPLICIT_ERROR_MEMORY(). | |
#define | BASEOBJECT_CREATEINTERNAL_EXPLICIT_ERROR_MEMORY() m_LastCreationErrorString.Set(BaseObject::m_pErrorString_Memory); |
Macro to be used in CreateInternal() construction function before a call to "return false" when the construction fails, in the case of a memory allocation. | |
#define | BASEOBJECT_CREATEINTERNAL_EXPLICIT_ERROR_CANTOPENFILE() m_LastCreationErrorString.Set(BaseObject::m_pErrorString_CantOpenFile); |
Typedefs | |
typedef BaseObject *(* | CreatorCallBackFunction )(void) |
CreatorCallBackFunction stands for a pointer to a static method that make a new BaseObject. |
|
Macro to be used in CreateInternal() construction function before a call to "return false" when the construction fails, to explicit why the object couldn't be built. For memory allocation error, use BASEOBJECT_CREATEINTERNAL_EXPLICIT_ERROR_MEMORY().
Definition at line 700 of file BaseObject.h. |
|
Macro to be used in CreateInternal() construction function before a call to "return false" when the construction fails, in the case of a memory allocation.
|
|
Value: const BaseObject::ClassDescription _ClassName::m_Description= \ { \ _ClassName::NewObject, \ _idname , \ &(_superClassName::m_Description), \ #_ClassName,\ _defaultObjectName,\ _displayName, \ _helpDescription \ }; \ BaseObject *_ClassName::NewObject(void){ return( new _ClassName() ); }\ _ClassName::~_ClassName(void) { Close(); } \ const BaseObject::ClassDescription &_ClassName::GetClassDescription( void ) const \ { return( _ClassName::m_Description ); }
Definition at line 617 of file BaseObject.h. |
|
Value: const BaseObject::ClassDescription _ClassName::m_Description= \ { \ 0L, \ _idname , \ &(_superClassName::m_Description), \ #_ClassName,\ 0L,\ 0L,\ 0L\ };\ _ClassName::~_ClassName(void) { Close(); }\ const BaseObject::ClassDescription &_ClassName::GetClassDescription( void ) const\ { return( _ClassName::m_Description ); }
Definition at line 648 of file BaseObject.h. |
|
Value: static const ClassDescription m_Description; \ virtual const ClassDescription &GetClassDescription( void ) const;\ static BaseObject *NewObject(void);\ virtual ~_ClassName(void);
Definition at line 574 of file BaseObject.h. |
|
Value: static const ClassDescription m_Description;\ virtual const ClassDescription &GetClassDescription( void ) const;\ virtual ~_ClassName(void);
Definition at line 594 of file BaseObject.h. |
|
Macro that make accessible a tool method for this class. It must be used in constructors. See RegisterToolMethod().
Definition at line 683 of file BaseObject.h. |
|
CreatorCallBackFunction stands for a pointer to a static method that make a new BaseObject.
Definition at line 50 of file BaseObject.h. |
/\/\ 4 N k ! N D _______ _ __ ___ _____ ___ _ _ ____ ___________ __//___ /________ |/ / ___________\_______/ \ / _ _ \/ _ / _ / _/_/____/ _ __ / / / / / / / \ \/ / / \ \ / \\___/___/___/ ¯ _____/_____/ ______\___/_____/\________\\ \________/_ ___ __ l____\ /elD! http://www.m4nkind.com \____/