The purpose of this file is to hold all of the SDK general-purpose preprocessor definitions. More...
#include
<kaydaradef.h>
#include <fbsdk/fbtypes.h>
Go to the source code of this file.
Defines |
|
#define | FBSDK_DLL K_DLLIMPORT |
Be sure that FBSDK_DLL is defined only
once... |
|
#define | FBClassInit |
Class initialisation. |
|
#define | FBClassImplementation(Name) |
Class implementation. |
|
#define | FBClassDeclare(Name, Parent) |
Class declaration. |
The purpose of this file is to hold all of the SDK general-purpose preprocessor definitions.
Definition in file fbdefines.h.
#define FBSDK_DLL K_DLLIMPORT |
Be sure that FBSDK_DLL is defined only once...
Definition at line 50 of file fbdefines.h.
#define FBClassInit |
Class initialisation.
This should be placed as the first line in the constructor of a class derived from FBComponent.
Definition at line 64 of file fbdefines.h.
#define FBClassImplementation | ( | Name | ) |
Name::~Name() { } \ char* Name::ClassName() { return #Name; } \ int Name::GetTypeId() { return TypeInfo; } \ bool Name::Is( int pTypeId ){ return (pTypeId==TypeInfo) ? true : ParentClass::Is( pTypeId ); } \ void Name::FBDelete() { ParentClass::FBDelete(); } \ int Name::TypeInfo=FBPlug::mGlobalTypeInfo++;
Class implementation.
This should be placed in the source code file for a class that derives from FBComponent. It is absolutely necessary in order to identify the class type.
Definition at line 71 of file fbdefines.h.
#define FBClassDeclare | ( | Name, | |
Parent | |||
) |
public: \ typedef Parent ParentClass; \ virtual char *ClassName(); \ static int TypeInfo; \ virtual bool Is( int pTypeId ); \ virtual void FBDelete(); \ virtual int GetTypeId(); \ virtual ~Name(); \ private: \
Class declaration.
Overloads the necessary functions when a class inherits from FBComponent (or its derivatives).
Name | Name of class to declare. |
Parent | Parent class to associate with Name. |
Definition at line 85 of file fbdefines.h.