fbdefines.h File Reference

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 initialization.
#define  FBClassImplementation(Name)
  Class implementation.
#define  FBClassDeclare(Name, Parent)
  Class declaration.

Detailed Description

The purpose of this file is to hold all of the SDK general-purpose preprocessor definitions.

Definition in file fbdefines.h.


Define Documentation

#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 initialization.

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 )
Value:
Name::~Name()               { }                         \
    const 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 
)
Value:
public:                             \
    typedef Parent ParentClass;     \
    virtual const 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).

Parameters:
Name Name of class to declare.
Parent Parent class to associate with Name.

Definition at line 85 of file fbdefines.h.