-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExpressions.cpp
More file actions
46 lines (45 loc) · 817 Bytes
/
Expressions.cpp
File metadata and controls
46 lines (45 loc) · 817 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "Common.h"
int Extension::NodeID()
{
return cur->ID;
}
int Extension::Int(const TCHAR *Name)
{
return cur->im[Name];
}
float Extension::Float(const TCHAR *Name)
{
return cur->fm[Name];
}
const TCHAR *Extension::String(const TCHAR *Name)
{
return Runtime.CopyString(cur->sm[Name].c_str());
}
const TCHAR *Extension::SubnodeName()
{
return Runtime.CopyString(nit.back()->operator->()->first.c_str());
}
const TCHAR *Extension::IntName()
{
if(iit)
{
return Runtime.CopyString(iit->operator->()->first.c_str());
}
return _T("");
}
const TCHAR *Extension::FloatName()
{
if(fit)
{
return Runtime.CopyString(fit->operator->()->first.c_str());
}
return _T("");
}
const TCHAR *Extension::StringName()
{
if(sit)
{
return Runtime.CopyString(sit->operator->()->first.c_str());
}
return _T("");
}