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

◆ Property() [1/4]

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

Definition at line 41 of file property.cpp.

◆ Property() [2/4]

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

Definition at line 42 of file property.cpp.

◆ Property() [3/4]

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

Definition at line 43 of file property.cpp.

◆ Property() [4/4]

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

Definition at line 50 of file property.cpp.

Member Function Documentation

◆ Get()

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

Definition at line 40 of file property.cpp.

◆ GetName()

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

Definition at line 48 of file property.cpp.

◆ GetType()

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

Definition at line 49 of file property.cpp.

◆ IsInitializerVectorType()

bool exotica::Property::IsInitializerVectorType ( ) const

Definition at line 47 of file property.cpp.

◆ IsRequired()

bool exotica::Property::IsRequired ( ) const

Definition at line 44 of file property.cpp.

◆ IsSet()

bool exotica::Property::IsSet ( ) const

Definition at line 45 of file property.cpp.

◆ IsStringType()

bool exotica::Property::IsStringType ( ) const

Definition at line 46 of file property.cpp.

◆ Set()

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

Definition at line 49 of file property.h.

Member Data Documentation

◆ name_

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

Definition at line 67 of file property.h.

◆ required_

bool exotica::Property::required_
private

Definition at line 66 of file property.h.

◆ value_

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 Fri Aug 2 2024 08:43:03