From 3e07e568a1ae478b89812d91438d75179c94ab35 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Jan 2019 11:43:34 +0100 Subject: remove obsolete Tobii EyeX SDK --- Tobii-EyeX/include/eyex-cpp/Command.inl | 70 --------------------------------- 1 file changed, 70 deletions(-) delete mode 100755 Tobii-EyeX/include/eyex-cpp/Command.inl (limited to 'Tobii-EyeX/include/eyex-cpp/Command.inl') diff --git a/Tobii-EyeX/include/eyex-cpp/Command.inl b/Tobii-EyeX/include/eyex-cpp/Command.inl deleted file mode 100755 index 953687f..0000000 --- a/Tobii-EyeX/include/eyex-cpp/Command.inl +++ /dev/null @@ -1,70 +0,0 @@ -/********************************************************************************************************************* - * Copyright 2013-2014 Tobii Technology AB. All rights reserved. - * Command.inl - *********************************************************************************************************************/ - -#if !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Command__INL__) -#define __TOBII_TX_CLIENT_CPPBINDINGS_Command__INL__ - -/*********************************************************************************************************************/ - -TX_NAMESPACE_BEGIN - -/*********************************************************************************************************************/ - -inline Command::Command(const std::shared_ptr& spContext, TX_HANDLE hCommand) -: InteractionObject(spContext, hCommand) -{} - -/*********************************************************************************************************************/ - -inline TX_COMMANDTYPE Command::GetType() const -{ - TX_COMMANDTYPE commandType; - TX_VALIDATE(txGetCommandType(_hObject, &commandType)); - return commandType; -} - -/*********************************************************************************************************************/ - -inline void Command::ExecuteAsync(AsyncDataHandler fnHandler) -{ - auto spThis = shared_from_this(); - auto fnProxy = [&, spThis, fnHandler](TX_CONSTHANDLE hAsyncData) - { - GetContext()->InvokeAsyncDataHandler(hAsyncData, fnHandler); - }; - - TX_VALIDATE(Tx::ExecuteCommandAsync(_hObject, fnProxy)); -} - -/*********************************************************************************************************************/ - -inline std::shared_ptr Command::GetData() const -{ - auto spProperty = GetProperty(TX_LITERAL_DATA); - - std::shared_ptr spData; - if(spProperty->TryGetValue(&spData)) - return spData; - - return nullptr; -} - -/*********************************************************************************************************************/ - -inline void Command::SetData(const std::shared_ptr& spData) -{ - auto spProperty = GetProperty(TX_LITERAL_DATA); - spProperty->SetValue(spData); -} - -/*********************************************************************************************************************/ - -TX_NAMESPACE_END - -/*********************************************************************************************************************/ - -#endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_Command__INL__) - -/*********************************************************************************************************************/ -- cgit v1.2.3