Go to the documentation of this file.
21 #ifndef _mtsComponentGeneratorMacros_h
22 #define _mtsComponentGeneratorMacros_h
24 #define MTS_DECLARE_COMPONENT(componentName, componentType) bool InitComponent(void);
26 #define MTS_STATE_TABLE_BEGIN
27 #define MTS_STATE_TABLE_DATA(dataType, dataName) dataType dataName;
28 #define MTS_STATE_TABLE_END
30 #define MTS_INTERFACE_PROVIDED_BEGIN(interfaceName) struct interfaceName {
31 #define MTS_INTERFACE_PROVIDED_END(interfaceName) } interfaceName;
32 #define MTS_COMMAND_VOID(method, commandNameWithDoubleQuotes)
33 #define MTS_COMMAND_WRITE(method, commandNameWithDoubleQuotes, argumentPrototype)
34 #define MTS_COMMAND_READ(A, B, C)
35 #define MTS_COMMAND_STATEREAD(dataName, commandNameWithDoubleQuotes)
36 #define MTS_COMMAND_QUALIFIEDREAD(A, B, C, D)
37 #define MTS_EVENT_VOID(functionName, eventNameWithDoubleQuotes) mtsFunctionVoid functionName;
38 #define MTS_EVENT_WRITE(functionName, eventNameWithDoubleQuotes, argumentPrototype) mtsFunctionWrite functionName;
40 #define MTS_INTERFACE_REQUIRED_BEGIN(interfaceName) struct interfaceName {
41 #define MTS_INTERFACE_REQUIRED_END(interfaceName) } interfaceName;
42 #define MTS_FUNCTION_VOID(functionName, commandNameWithDoubleQuotes) mtsFunctionVoid functionName;
43 #define MTS_FUNCTION_WRITE(functionName, commandNameWithDoubleQuotes) mtsFunctionWrite functionName;
44 #define MTS_FUNCTION_READ(functionName, commandNameWithDoubleQuotes) mtsFunctionRead functionName;
45 #define MTS_FUNCTION_QUALIFIEDREAD(functionName, commandNameWithDoubleQuotes) mtsFunctionQualifiedRead functionName;
46 #define MTS_EVENT_HANDLER_WRITE(method, eventNameWithDoubleQuotes, argumentPrototype)
47 #define MTS_EVENT_HANDLER_VOID(method, eventNameWithDoubleQuotes)
48 #define MTS_EVENT_HANDLER_NONQUEUED_VOID(method, eventNameWithDoubleQuotes)
50 #endif // _mtsComponentGeneratorMacros_h