GetSet  .9
A c++ library for load/saving typed and named properties and automatic GUI.
GetSet< BasicType > Class Template Reference

Syntactic Sugar to access and change GetSet parameters. More...

#include <GetSet.hxx>

Public Member Functions

 GetSet (GetSetDictionary &d, const std::string &s, const std::string k)
 GetSet (const std::string &s, const std::string k)
void operator= (const BasicType &v)
 Set the value of a GetSet property directly via assignment operator.
 operator BasicType () const
 Cast operator directly to BasicType (behaves almost like a c++ variable of BasicType)
std::string getString () const
 Get the value of the property as string.
void setString (const std::string &value)
 Set the value of this property from a string.

Protected Member Functions

 GetSet (GetSetDictionary &d)
void create ()

Protected Attributes

std::string section
std::string key
GetSetDictionarydict

Detailed Description

template<typename BasicType>
class GetSet< BasicType >

Syntactic Sugar to access and change GetSet parameters.

Constructor & Destructor Documentation

template<typename BasicType>
GetSet< BasicType >::GetSet ( GetSetDictionary d)
inlineprotected
template<typename BasicType>
GetSet< BasicType >::GetSet ( GetSetDictionary d,
const std::string &  s,
const std::string  k 
)
inline
template<typename BasicType>
GetSet< BasicType >::GetSet ( const std::string &  s,
const std::string  k 
)
inline

Member Function Documentation

template<typename BasicType>
void GetSet< BasicType >::create ( )
inlineprotected
template<typename BasicType>
std::string GetSet< BasicType >::getString ( ) const
inline

Get the value of the property as string.

template<typename BasicType>
GetSet< BasicType >::operator BasicType ( ) const
inline

Cast operator directly to BasicType (behaves almost like a c++ variable of BasicType)

Reimplemented in GetSetGui::File, GetSetGui::Directory, GetSetGui::ReadOnlyText, GetSetGui::StaticText, GetSetGui::Trigger, GetSetGui::Enum, and GetSetGui::Slider.

template<typename BasicType>
void GetSet< BasicType >::operator= ( const BasicType &  v)
inline

Set the value of a GetSet property directly via assignment operator.

Reimplemented in GetSetGui::File, GetSetGui::Directory, GetSetGui::ReadOnlyText, GetSetGui::StaticText, GetSetGui::Trigger, GetSetGui::Enum, and GetSetGui::Slider.

template<typename BasicType>
void GetSet< BasicType >::setString ( const std::string &  value)
inline

Set the value of this property from a string.

Member Data Documentation

template<typename BasicType>
GetSetDictionary& GetSet< BasicType >::dict
protected
template<typename BasicType>
std::string GetSet< BasicType >::key
protected
template<typename BasicType>
std::string GetSet< BasicType >::section
protected

The documentation for this class was generated from the following file: