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

#include <property.h>

Public Member Functions

boost::any Get () const
 
const std::string & GetName () const
 
std::string GetType () const
 
bool IsInitializerVectorType () const
 
bool IsRequired () const
 
bool IsSet () const
 
bool IsStringType () const
 
 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)
 
template<typename C >
void Set (const C val)
 

Private Attributes

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

Detailed Description

Definition at line 44 of file property.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file property.cpp.

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

Definition at line 42 of file property.cpp.

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

Definition at line 43 of file property.cpp.

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

Definition at line 50 of file property.cpp.

Member Function Documentation

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

Definition at line 40 of file property.cpp.

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

Definition at line 48 of file property.cpp.

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

Definition at line 49 of file property.cpp.

bool exotica::Property::IsInitializerVectorType ( ) const

Definition at line 47 of file property.cpp.

bool exotica::Property::IsRequired ( ) const

Definition at line 44 of file property.cpp.

bool exotica::Property::IsSet ( ) const

Definition at line 45 of file property.cpp.

bool exotica::Property::IsStringType ( ) const

Definition at line 46 of file property.cpp.

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

Definition at line 49 of file property.h.

Member Data Documentation

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

Definition at line 67 of file property.h.

bool exotica::Property::required_
private

Definition at line 66 of file property.h.

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

Definition at line 65 of file property.h.


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


exotica_core
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sat Apr 10 2021 02:34:50