TwiceAsNice
2019-02-18
|
Abstract struct provides base functionalities for weak type management. More...
#include "Nice/Property.h"
Public Member Functions | |
virtual | ~PropertyFoo () |
Virtual Destructor. More... | |
virtual std::string | type ()=0 |
Abstract function for requesting the stringified type of m_o. More... | |
virtual std::string | toString () const =0 |
Abstract function for requesting the stringified value of m_o. More... | |
virtual std::string | toUnquotedString () |
Abstract function for requesting the stringified value of m_o. More... | |
virtual Nice::Any | any () |
Abstract function for requesting the Nice::Any. More... | |
virtual void | fromString (const std::string &_v)=0 |
Abstract function to creates a Property for a stringified Property. More... | |
template<typename T > | |
T | cast () |
Cast m_o to a type T. More... | |
template<typename T > | |
T & | ref () |
Cast m_o to a type T. More... | |
void | set (const std::string &_v) |
Methode to set the value of this property. More... | |
template<typename T > | |
void | set (const T &_v) |
Methode to set the value of this property. More... | |
template<typename T > | |
bool | isType () |
Checks if is of type T. More... | |
virtual PropertyFoo * | clone ()=0 |
Abstract function for cloning an instance of this struct. More... | |
virtual | ~PropertyFoo () |
Virtual Destructor. More... | |
virtual std::string | type ()=0 |
Abstract function for requesting the stringified type of m_o. More... | |
virtual std::string | toString () const =0 |
Abstract function for requesting the stringified value of m_o. More... | |
virtual std::string | toUnquotedString () |
Abstract function for requesting the stringified value of m_o. More... | |
virtual Nice::Any | any () |
Abstract function for requesting the Nice::Any. More... | |
virtual void | fromString (const std::string &_v)=0 |
Abstract function to creates a Property for a stringified Property. More... | |
template<typename T > | |
T | cast () |
Cast m_o to a type T. More... | |
template<typename T > | |
T & | ref () |
Cast m_o to a type T. More... | |
void | set (const std::string &_v) |
Methode to set the value of this property. More... | |
template<typename T > | |
void | set (const T &_v) |
Methode to set the value of this property. More... | |
template<typename T > | |
bool | isType () |
Checks if is of type T. More... | |
virtual PropertyFoo * | clone ()=0 |
Abstract function for cloning an instance of this struct. More... | |
template<> | |
void | set (const Nice::Any &_v) |
Public Attributes | |
Nice::Any | m_o |
Abstract struct provides base functionalities for weak type management.
|
inlinevirtual |
Virtual Destructor.
|
inlinevirtual |
Virtual Destructor.
|
inlinevirtual |
|
inlinevirtual |
Cast m_o to a type T.
T Nice::PropertyFoo::cast | ( | ) |
|
pure virtual |
Abstract function for cloning an instance of this struct.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
pure virtual |
Abstract function for cloning an instance of this struct.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
pure virtual |
Abstract function to creates a Property for a stringified Property.
_v | Stringified Property |
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
pure virtual |
Abstract function to creates a Property for a stringified Property.
_v | Stringified Property |
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
bool Nice::PropertyFoo::isType | ( | ) |
Checks if is of type T.
bool Nice::PropertyFoo::isType | ( | ) |
Checks if is of type T.
T& Nice::PropertyFoo::ref | ( | ) |
Cast m_o to a type T.
T & Nice::PropertyFoo::ref | ( | ) |
Cast m_o to a type T.
void Nice::PropertyFoo::set | ( | const std::string & | _v | ) |
Methode to set the value of this property.
The value type has to match the current type.
Value | to set. |
void Nice::PropertyFoo::set | ( | const std::string & | _v | ) |
Methode to set the value of this property.
The value type has to match the current type.
Value | to set. |
void Nice::PropertyFoo::set | ( | const T & | _v | ) |
Methode to set the value of this property.
The value type has to match the current type.
Value | to set. |
void Nice::PropertyFoo::set | ( | const T & | _v | ) |
Methode to set the value of this property.
The value type has to match the current type.
Value | to set. |
|
pure virtual |
Abstract function for requesting the stringified value of m_o.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
pure virtual |
Abstract function for requesting the stringified value of m_o.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
virtual |
Abstract function for requesting the stringified value of m_o.
this function
|
virtual |
Abstract function for requesting the stringified value of m_o.
this function
|
pure virtual |
Abstract function for requesting the stringified type of m_o.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
|
pure virtual |
Abstract function for requesting the stringified type of m_o.
Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.
Nice::Any Nice::PropertyFoo::m_o |
Container for any data stored inside a property