File SBCReferenceRegister.hpp#
FileList > Core > Reference > SBCReferenceRegister.hpp
#include "SBCMetaRegister.hpp"#include "SBCReferencePointerIndexer.hpp"#include "SBCReferencePointerList.hpp"#include "SBCReferencePointer.hpp"#include "SBCContainerUUID.hpp"
Macros#
| Type | Name |
|---|---|
| define | SB_REGISTER_TARGET_TYPE (TYPE, SHORT_NAME, UUID) Registers a target type (see Introspection ) in a SAMSON Extension. |
Macro Definition Documentation#
define SB_REGISTER_TARGET_TYPE#
Registers a target type (see Introspection ) in a SAMSON Extension.
Parameters:
TYPEThe registered typeSHORT_NAMEThe short name of the registered type (in quotes)UUIDThe UUID of the registered type (in quotes)
This macro registers a target type (see Introspection) in a SAMSON Extension.
Assume for example a SAMSON Extension contains the following class:
class A : public SBCReferenceTarget {
SB_CLASS
public:
A() {}
virtual ~A() {}
int multiplyByTwo(int i) {
return 2 * i;
}
};
SB_REGISTER_TARGET_TYPE(A, "A", "BF99103E-06FE-C4C1-D929-4C6E833B101C");
The SB_REGISTER_TYPE macro declares to SAMSON's Introspection that A is a registered type, and that it is a reference target (i.e. that it derives from SBCReferenceTarget).
For classes that do not (directly or indirectly) derive from SBCReferenceTarget, the macro SB_REGISTER_TYPE should be used instead.
See also: Introspection
See also: SB_REGISTER_TYPE