Exotica
Public Member Functions | Private Attributes | List of all members
exotica::Property Class Reference

#include <property.h>

Collaboration diagram for exotica::Property:
Collaboration graph

Public Member Functions

boost::any Get () const
 
template<typename C >
void Set (const C val)
 
 Property (const std::string &prop_name)
 
 Property (const std::string &prop_name, bool is_required)
 
 Property (const std::string &prop_name, bool is_required, boost::any val)
 
 Property (std::initializer_list< boost::any > val)
 
bool IsRequired () const
 
bool IsSet () const
 
bool IsStringType () const
 
bool IsInitializerVectorType () const
 
const std::string & GetName () const
 
std::string GetType () const
 

Private Attributes

boost::any value_
 
bool required_
 
std::string name_
 

Constructor & Destructor Documentation

◆ Property() [1/4]

exotica::Property::Property ( const std::string &  prop_name)

◆ Property() [2/4]

exotica::Property::Property ( const std::string &  prop_name,
bool  is_required 
)

◆ Property() [3/4]

exotica::Property::Property ( const std::string &  prop_name,
bool  is_required,
boost::any  val 
)

◆ Property() [4/4]

exotica::Property::Property ( std::initializer_list< boost::any >  val)

Member Function Documentation

◆ Get()

boost::any exotica::Property::Get ( ) const

◆ GetName()

const std::string& exotica::Property::GetName ( ) const

◆ GetType()

std::string exotica::Property::GetType ( ) const

◆ IsInitializerVectorType()

bool exotica::Property::IsInitializerVectorType ( ) const

◆ IsRequired()

bool exotica::Property::IsRequired ( ) const

◆ IsSet()

bool exotica::Property::IsSet ( ) const

◆ IsStringType()

bool exotica::Property::IsStringType ( ) const

◆ Set()

template<typename C >
void exotica::Property::Set ( const C  val)
inline

Member Data Documentation

◆ name_

std::string exotica::Property::name_
private

◆ required_

bool exotica::Property::required_
private

◆ value_

boost::any exotica::Property::value_
private

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