Loading...
Searching...
No Matches
SBCMetaRegister.hpp File Reference

Macros

#define SB_REGISTER_TYPE(TYPE, SHORT_NAME, UUID)
 Registers a type in a SAMSON Extension.
 
#define COMMA
 

Macro Definition Documentation

◆ SB_REGISTER_TYPE

#define SB_REGISTER_TYPE (   TYPE,
  SHORT_NAME,
  UUID 
)
Parameters
TYPEThe registered type
SHORT_NAMEThe short name of the registered type (in quotes)
UUIDThe UUID of the registered type (in quotes)

This macro registers a type in a SAMSON Extension.

Assume for example a SAMSON Extension contains the following class:

class A {
public:
A() {}
virtual ~A() {}
int multiplyByTwo(int i) {
return 2 * i;
}
};
SB_REGISTER_TYPE(A, "A", "BF99103E-06FE-C4C1-D929-4C6E833B101C");
#define SB_CLASS
Macro that is added inside the class declaration for Introspection, etc.
Definition: SBCClass.hpp:241
#define SB_REGISTER_TYPE(TYPE, SHORT_NAME, UUID)
Registers a type in a SAMSON Extension.
Definition: SBCMetaRegister.hpp:52

The SB_REGISTER_TYPE macro declares to SAMSON's introspection mechanism that A is a registered type.

For classes that (directly or indirectly) derive from SBCReferenceTarget, the macro SB_REGISTER_TARGET_TYPE should be used instead.

See also
Introspection
SB_REGISTER_TARGET_TYPE