summaryrefslogtreecommitdiffhomepage
path: root/Tobii EyeX/include/eyex-cpp/HandleWrapper.inl
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-16 11:19:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-09 10:28:01 +0200
commitbe2926499af2e372c313d965533be3a7ee0dcf4d (patch)
tree34501ef650da4a2990912bd0b38ed7135696c164 /Tobii EyeX/include/eyex-cpp/HandleWrapper.inl
parent6eb99f06be3ead3c898b400d7b9072583c7addf0 (diff)
add tobii eyex sdk
Diffstat (limited to 'Tobii EyeX/include/eyex-cpp/HandleWrapper.inl')
-rwxr-xr-xTobii EyeX/include/eyex-cpp/HandleWrapper.inl61
1 files changed, 61 insertions, 0 deletions
diff --git a/Tobii EyeX/include/eyex-cpp/HandleWrapper.inl b/Tobii EyeX/include/eyex-cpp/HandleWrapper.inl
new file mode 100755
index 0000000..eae842e
--- /dev/null
+++ b/Tobii EyeX/include/eyex-cpp/HandleWrapper.inl
@@ -0,0 +1,61 @@
+/*********************************************************************************************************************
+ * Copyright 2013-2014 Tobii Technology AB. All rights reserved.
+ * InteractionObject.inl
+ *********************************************************************************************************************/
+
+#if !defined(__TOBII_TX_CLIENT_CPPBINDINGS_HANDLEWRAPPER__INL__)
+#define __TOBII_TX_CLIENT_CPPBINDINGS_HANDLEWRAPPER__INL__
+
+/*********************************************************************************************************************/
+
+TX_NAMESPACE_BEGIN
+
+/*********************************************************************************************************************/
+
+template <typename THandle>
+inline HandleWrapper<THandle>::HandleWrapper(const std::shared_ptr<const Context>& spContext, THandle hObject)
+: _spContext(spContext), _hObject(hObject)
+{}
+
+/*********************************************************************************************************************/
+
+template <typename THandle>
+inline HandleWrapper<THandle>::~HandleWrapper()
+{ }
+
+/*********************************************************************************************************************/
+
+template <typename THandle>
+inline std::shared_ptr<const Context> HandleWrapper<THandle>::GetContext() const
+{
+ return _spContext;
+}
+
+/*********************************************************************************************************************/
+
+template <typename THandle>
+inline THandle HandleWrapper<THandle>::GetHandle() const
+{
+ return _hObject;
+}
+
+/*********************************************************************************************************************/
+
+template <typename THandle>
+template <typename THandle1, typename THandle2>
+inline static std::string HandleWrapper<THandle>::GetString(TX_RESULT (*pFn)(THandle1, TX_STRING, TX_SIZE*), THandle2 handle, TX_SIZE estimatedLength)
+{
+ std::string str;
+ TX_VALIDATE(Tx::Utils::GetString(&str, pFn, handle, estimatedLength));
+ return str;
+}
+
+/*********************************************************************************************************************/
+
+TX_NAMESPACE_END
+
+/*********************************************************************************************************************/
+
+#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_HANDLEWRAPPER__INL__)
+
+/*********************************************************************************************************************/