/********************************************************************************************************************* * 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 inline HandleWrapper::HandleWrapper(const std::shared_ptr& spContext, THandle hObject) : _spContext(spContext), _hObject(hObject) {} /*********************************************************************************************************************/ template inline HandleWrapper::~HandleWrapper() { } /*********************************************************************************************************************/ template inline std::shared_ptr HandleWrapper::GetContext() const { return _spContext; } /*********************************************************************************************************************/ template inline THandle HandleWrapper::GetHandle() const { return _hObject; } /*********************************************************************************************************************/ template template inline static std::string HandleWrapper::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__) /*********************************************************************************************************************/