-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataTypes.h
More file actions
32 lines (27 loc) · 917 Bytes
/
DataTypes.h
File metadata and controls
32 lines (27 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "DataTypeList.h"
// custom data type declarations
class RIType : public LSTypeDefinition
{
public:
// All data members (retrieving data) should be listed in this enumeration
enum RITypeMembers
{
RetrieveData,
};
// All data methods (performing actions on or with the object) should be listed in this enumeration
enum RITypeMethods
{
PerformAction,
};
RIType() : LSType("ri")
{
// Use the TypeMember macro to activate each member, or use AddMember
TypeMember(RetrieveData);
// Use the TypeMethod macro to activate each member, or use AddMethod
TypeMethod(PerformAction);
}
virtual bool GetMember(LSOBJECTDATA ObjectData, PLSTYPEMEMBER Member, int argc, char *argv[], LSOBJECT &Object);
virtual bool GetMethod(LSOBJECTDATA &ObjectData, PLSTYPEMETHOD pMethod, int argc, char *argv[]);
virtual bool ToText(LSOBJECTDATA ObjectData, char *buf, unsigned int buflen);
};