-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoundTypeMember.cpp
More file actions
37 lines (27 loc) · 907 Bytes
/
BoundTypeMember.cpp
File metadata and controls
37 lines (27 loc) · 907 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
// Copyright 2006-12 HumaNature Studios Inc.
#include "CorePch.h"
#include "BoundTypeMember.h"
namespace core {
// where most of the magic happens, the value is updated from the property. each one of these just references the
// template read from the Property class
template <>
void BoundTypeMember<bool>::updateValueFromProperty(Property* property)
{
property->read(mName.c_str(), mRef);
}
template <>
void BoundTypeMember<int>::updateValueFromProperty(Property* property)
{
property->read(mName.c_str(), mRef);
}
template <>
void BoundTypeMember<float>::updateValueFromProperty(Property* property)
{
property->read(mName.c_str(), mRef);
}
template <>
void BoundTypeMember<const char>::updateValueFromProperty(Property* property)
{
property->read(mName.c_str(), mRef);
}
} // namespace core