summaryrefslogtreecommitdiffhomepage
path: root/Tobii-EyeX/include/eyex-cpp/HandleWrapper.inl
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/HandleWrapper.inl
parent6f1cc7dbf4af2503e6624d939c6f9dc7ee1cfd24 (diff)
rename
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__)
+
+/*********************************************************************************************************************/