/********************************************************************************************************************* * 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 { public: Property(const std::shared_ptr& spContext, TX_PROPERTYHANDLE hProperty); TX_PROPERTYVALUETYPE GetValueType() const; std::string GetName() const; TX_PROPERTYFLAGS GetFlags() const; void Clear(); template bool TryGetValue(TValue* pValue) const; template typename PropertyValueResolver::ValueType GetValue() const; template void SetValue(const TValue& value); }; /*********************************************************************************************************************/ TX_NAMESPACE_END /*********************************************************************************************************************/ #endif // !defined(__TOBII_TX_CLIENT_CPPBINDINGS_PROPERTY__HPP__) /*********************************************************************************************************************/