summaryrefslogtreecommitdiffhomepage
path: root/Tobii-EyeX/include/eyex-cpp/Property.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-30 15:01:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-30 15:02:01 +0200
commit72c46bdd7f5d430ab1ad1d420ed77c7f22df857a (patch)
treead288a9b0eecb5c9d6afa9a42fcb87b017080484 /Tobii-EyeX/include/eyex-cpp/Property.hpp
parent6f1cc7dbf4af2503e6624d939c6f9dc7ee1cfd24 (diff)
rename
Diffstat (limited to 'Tobii-EyeX/include/eyex-cpp/Property.hpp')
-rwxr-xr-xTobii-EyeX/include/eyex-cpp/Property.hpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/Tobii-EyeX/include/eyex-cpp/Property.hpp b/Tobii-EyeX/include/eyex-cpp/Property.hpp
new file mode 100755
index 0000000..2ff87c0
--- /dev/null
+++ b/Tobii-EyeX/include/eyex-cpp/Property.hpp
@@ -0,0 +1,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__)
+
+/*********************************************************************************************************************/