TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | List of all members
Nice::PropertyFoo Struct Referenceabstract

Abstract struct provides base functionalities for weak type management. More...

#include "Nice/Property.h"

Inheritance diagram for Nice::PropertyFoo:
Inheritance graph
Collaboration diagram for Nice::PropertyFoo:
Collaboration graph

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 >
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 PropertyFooclone ()=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 >
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 PropertyFooclone ()=0
 Abstract function for cloning an instance of this struct. More...
 
template<>
void set (const Nice::Any &_v)
 

Public Attributes

Nice::Any m_o
 

Detailed Description

Abstract struct provides base functionalities for weak type management.

Author
Version
Date
2012-08-10 11:04:58 AM

Constructor & Destructor Documentation

◆ ~PropertyFoo() [1/2]

virtual Nice::PropertyFoo::~PropertyFoo ( )
inlinevirtual

Virtual Destructor.

◆ ~PropertyFoo() [2/2]

virtual Nice::PropertyFoo::~PropertyFoo ( )
inlinevirtual

Virtual Destructor.

Member Function Documentation

◆ any() [1/2]

virtual Nice::Any Nice::PropertyFoo::any ( )
inlinevirtual

Abstract function for requesting the Nice::Any.

Returns
Nice::Any.

◆ any() [2/2]

virtual Nice::Any Nice::PropertyFoo::any ( )
inlinevirtual

Abstract function for requesting the Nice::Any.

Returns
Nice::Any.

◆ cast() [1/2]

template<typename T >
template bool Nice::PropertyFoo::cast< bool > ( )

Cast m_o to a type T.

Returns
Casted type.

◆ cast() [2/2]

template<typename T >
T Nice::PropertyFoo::cast ( )

Cast m_o to a type T.

todo Nice::AnyCast<T>() only ????

Returns
Casted type.

◆ clone() [1/2]

virtual PropertyFoo* Nice::PropertyFoo::clone ( )
pure virtual

Abstract function for cloning an instance of this struct.

Returns
Cloned PropertyFoo.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ clone() [2/2]

virtual PropertyFoo* Nice::PropertyFoo::clone ( )
pure virtual

Abstract function for cloning an instance of this struct.

Returns
Cloned PropertyFoo.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ fromString() [1/2]

virtual void Nice::PropertyFoo::fromString ( const std::string &  _v)
pure virtual

Abstract function to creates a Property for a stringified Property.

Parameters
_vStringified Property

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ fromString() [2/2]

virtual void Nice::PropertyFoo::fromString ( const std::string &  _v)
pure virtual

Abstract function to creates a Property for a stringified Property.

Parameters
_vStringified Property

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ isType() [1/2]

template<typename T >
bool Nice::PropertyFoo::isType ( )

Checks if is of type T.

Returns
True, if Property is of type T

◆ isType() [2/2]

template<typename T >
bool Nice::PropertyFoo::isType ( )

Checks if is of type T.

Returns
True, if Property is of type T

◆ ref() [1/2]

template<typename T >
T& Nice::PropertyFoo::ref ( )

Cast m_o to a type T.

Returns
reference of casted type, throws if the type is not the same.

◆ ref() [2/2]

template<typename T >
T & Nice::PropertyFoo::ref ( )

Cast m_o to a type T.

Returns
reference of casted type, throws if the type is not the same.

◆ set() [1/5]

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.

Parameters
Valueto set.

◆ set() [2/5]

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.

Parameters
Valueto set.

◆ set() [3/5]

template<typename T >
void Nice::PropertyFoo::set ( const T &  _v)

Methode to set the value of this property.

The value type has to match the current type.

Parameters
Valueto set.

◆ set() [4/5]

template<typename T >
void Nice::PropertyFoo::set ( const T &  _v)

Methode to set the value of this property.

The value type has to match the current type.

Parameters
Valueto set.

◆ set() [5/5]

void Nice::PropertyFoo::set ( const Nice::Any _v)

◆ toString() [1/2]

virtual std::string Nice::PropertyFoo::toString ( ) const
pure virtual

Abstract function for requesting the stringified value of m_o.

Returns
Stringified value of m_o.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ toString() [2/2]

virtual std::string Nice::PropertyFoo::toString ( ) const
pure virtual

Abstract function for requesting the stringified value of m_o.

Returns
Stringified value of m_o.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ toUnquotedString() [1/2]

std::string Nice::PropertyFoo::toUnquotedString ( )
virtual

Abstract function for requesting the stringified value of m_o.

this function

Returns
Stringified value of m_o.

◆ toUnquotedString() [2/2]

virtual std::string Nice::PropertyFoo::toUnquotedString ( )
virtual

Abstract function for requesting the stringified value of m_o.

this function

Returns
Stringified value of m_o.

◆ type() [1/2]

virtual std::string Nice::PropertyFoo::type ( )
pure virtual

Abstract function for requesting the stringified type of m_o.

Returns
Stringified type.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

◆ type() [2/2]

virtual std::string Nice::PropertyFoo::type ( )
pure virtual

Abstract function for requesting the stringified type of m_o.

Returns
Stringified type.

Implemented in Nice::PropertyFooImpl< T >, and Nice::PropertyFooImpl< T >.

Member Data Documentation

◆ m_o

Nice::Any Nice::PropertyFoo::m_o

Container for any data stored inside a property


The documentation for this struct was generated from the following files: