eproperty::Value< TYPE > Class Template Reference
#include <Value.hpp>
Inheritance diagram for eproperty::Value< TYPE >:
Public Member Functions | |
template<class CLASS_TYPE > | |
Value (CLASS_TYPE *_owner, const std::string &_name, const TYPE &_defaultValue, const std::string &_description="", void(CLASS_TYPE::*_setObs)()=nullptr) | |
Value (const TYPE &_defaultValue) | |
std::string | getValueSpecific (const TYPE &_valueRequested) const override |
void | setString (const std::string &_newVal) override |
Public Member Functions inherited from eproperty::PropertyType< TYPE > | |
template<class CLASS_TYPE > | |
PropertyType (CLASS_TYPE *_owner, const std::string &_name, const TYPE &_defaultValue, const std::string &_description="", void(CLASS_TYPE::*_setObs)()=nullptr) | |
PropertyType (const TYPE &_defaultValue) | |
virtual | ~PropertyType ()=default |
std::string | getPropertyType () const override |
std::string | getType () const override |
std::string | getString () const override |
std::string | getDefault () const override |
std::string | getInfo () const override |
bool | isDefault () const override |
void | setDefault () override |
virtual void | changeDefault (const TYPE &_newDefault) |
const TYPE & | get () const |
virtual void | set (const TYPE &_newVal) |
void | setDirect (const TYPE &_newVal) |
virtual void | setDirectCheck (const TYPE &_newVal) |
TYPE & | getDirect () |
operator const TYPE & () const | |
const TYPE & | operator* () const noexcept |
const TYPE * | operator-> () const noexcept |
PropertyType< TYPE > & | operator= (const TYPE &_newVal)=delete |
Public Member Functions inherited from eproperty::Property | |
Property (eproperty::Interface *_paramInterfaceLink, const std::string &_name) | |
Property () | |
virtual | ~Property ()=default |
void | notifyChange () const |
virtual std::string | getName () const |
virtual std::vector< std::string > | getListValue () const |
template<class TYPE > | |
bool | operator== (const TYPE &_obj) const =delete |
template<class TYPE > | |
bool | operator!= (const TYPE &_obj) const =delete |
template<class TYPE > | |
bool | operator<= (const TYPE &_obj) const =delete |
template<class TYPE > | |
bool | operator>= (const TYPE &_obj) const =delete |
template<class TYPE > | |
bool | operator< (const TYPE &_obj) const =delete |
template<class TYPE > | |
bool | operator> (const TYPE &_obj) const =delete |
Additional Inherited Members | |
Public Types inherited from eproperty::Property | |
using | Observer = std::function< void()> |
Protected Member Functions inherited from eproperty::Property | |
void | setObserver (eproperty::Property::Observer _setObs) |
Protected Attributes inherited from eproperty::PropertyType< TYPE > | |
TYPE | m_value |
TYPE | m_default |
Detailed Description
template<class TYPE>
class eproperty::Value< TYPE >
Simple Value of the property (need to implement fuction etk::from_string<TYPE> to use it)
Constructor & Destructor Documentation
§ Value() [1/2]
template<class TYPE>
template<class CLASS_TYPE >
|
inline |
Create a parameter with a specific type.
- Parameters
-
[in] _owner Owner of the parameter (nullptr if none). [in] _name Static name of the parameter. [in] _defaultValue Default value of the parameter. [in] _description description of the parameter. [in] _setObs function of the class that opserve the change of the value
§ Value() [2/2]
template<class TYPE>
eproperty::Value< TYPE >::Value | ( | const TYPE & | _defaultValue | ) |
Create a parameter with a specific type.
- Parameters
-
[in] _defaultValue Default value of the parameter.
Member Function Documentation
§ getValueSpecific()
template<class TYPE>
|
overridevirtual |
Get the string of the specify value.
- Parameters
-
[in] _valueRequested Value to convert in string
- Returns
- convertion of the value in string.
Implements eproperty::PropertyType< TYPE >.
§ setString()
template<class TYPE>
|
overridevirtual |
Set a new value of the Property (with string interface).
- Parameters
-
[in] _newVal New value of the Propertys.
Implements eproperty::Property.
The documentation for this class was generated from the following file:
- framework/atria-soft/eproperty/eproperty/Value.hpp