-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaimetadata.inc
executable file
·51 lines (45 loc) · 1.5 KB
/
aimetadata.inc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//from metadata.h
// -------------------------------------------------------------------------------
{**
* Enum used to distinguish data types
*}
// -------------------------------------------------------------------------------
const
AI_BOOL = 0;
AI_INT = 1;
AI_UINT64 = 2;
AI_FLOAT = 3;
AI_AISTRING = 4;
AI_AIVECTOR3D = 5;
type
TaiMetadataType = Integer;
// -------------------------------------------------------------------------------
type
{**
* Metadata entry
*
* The type field uniquely identifies the underlying type of the data field
*}
// -------------------------------------------------------------------------------
TaiMetadataEntry = record
mType: TaiMetadataType;
mData: Pointer;
end;
PaiMetadataEntry = ^TaiMetadataEntry;
// -------------------------------------------------------------------------------
{**
* Container for holding metadata.
*
* Metadata is a key-value store using string keys and values.
*}
// -------------------------------------------------------------------------------
TaiMetadata = record
{** Length of the mKeys and mValues arrays, respectively *}
mNumProperties: CUInt;
{** Arrays of keys, may not be NULL. Entries in this array may not be NULL as well. *}
mKeys: PaiString;
{** Arrays of values, may not be NULL. Entries in this array may be NULL if the
* corresponding property key has no assigned value. *}
mValues: PaiMetadataEntry;
end;
PaiMetadata = ^TaiMetadata;