blob: 2ff87c0c1f6f365a1edcf32c12d9400274155221 (
plain)
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
|
/*********************************************************************************************************************
* Copyright 2013-2014 Tobii Technology AB. All rights reserved.
* Property.hpp
*********************************************************************************************************************/
#if !defined(__TOBII_TX_CLIENT_CPPBINDINGS_PROPERTY__HPP__)
#define __TOBII_TX_CLIENT_CPPBINDINGS_PROPERTY__HPP__
/*********************************************************************************************************************/
TX_NAMESPACE_BEGIN
/*********************************************************************************************************************/
class Property :
public HandleWrapper<TX_PROPERTYHANDLE>
{
public:
Property(const std::shared_ptr<const Context>& spContext, TX_PROPERTYHANDLE hProperty);
TX_PROPERTYVALUETYPE GetValueType() const;
std::string GetName() const;
TX_PROPERTYFLAGS GetFlags() const;
void Clear();
template <typename TValue>
bool TryGetValue(TValue* pValue) const;
template <typename TValue>
typename PropertyValueResolver<TValue>::ValueType GetValue() const;
template <typename TValue>
void SetValue(const TValue& value);
};
/*********************************************************************************************************************/
TX_NAMESPACE_END
/*********************************************************************************************************************/
#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_PROPERTY__HPP__)
/*********************************************************************************************************************/
|