#include <commandbase.h>
Legacy command data interface: a data dictionary which holds one or more pointers to generic data used to store legacy data types.
Public Member Functions | |
MAXON_METHOD Result< Generic * > | GetLegacyData (Int index) |
MAXON_METHOD Result< void > | SetLegacyData (const Generic *data, Int index) |
MAXON_METHOD Int | GetLegacyDataCount () const |
template<typename LEGACYDATA > | |
MAXON_FUNCTION Result< void > | SetLegacyData (const LEGACYDATA &data, Int index) |
template<typename LEGACYDATA > | |
MAXON_FUNCTION Result< LEGACYDATA & > | GetLegacyData (Int index) |
Private Member Functions | |
MAXON_INTERFACE (LegacyCommandDataInterface, MAXON_REFERENCE_NORMAL, "net.maxon.command.interface.legacycommanddata") | |
|
private |
MAXON_METHOD Result<Generic*> GetLegacyData | ( | Int | index | ) |
Returns a pointer to the legacy data at index.
[in] | index | The data index. |
MAXON_METHOD Result<void> SetLegacyData | ( | const Generic * | data, |
Int | index | ||
) |
Sets legacy data from a data pointer at index.
[in] | data | The legacy data pointer. The memory ownership depends on the implementation. |
[in] | index | The data index. |
MAXON_METHOD Int GetLegacyDataCount | ( | ) | const |
Count of legacy data entries.
MAXON_FUNCTION Result<void> SetLegacyData | ( | const LEGACYDATA & | data, |
Int | index | ||
) |
Sets legacy data from a data reference at index.
LEGACYDATA | The type of legacy data. |
[in] | data | The data. |
[in] | index | The data index. #return OK on success. |
MAXON_FUNCTION Result<LEGACYDATA&> GetLegacyData | ( | Int | index | ) |
Gets a legacy data reference at index.
LEGACYDATA | The data type that will be returned. |
[in] | index | The data index. |