List.hpp
Go to the documentation of this file.
75 EPROPERTY_ERROR("property value='" << it->first << "' has been removed and this value was set ... change it before removing value to remove this error");
79 EPROPERTY_ERROR("property default='" << it->first << "' has been removed and this value was set ... change it before removing value to remove this error");
108 EPROPERTY_ERROR("paramList rename can not be done '" << _nameOld << "' in '" << _nameNew << "' parameter name does not exist");
134 std::string list = "List default=" + getValueSpecific(eproperty::PropertyType<TYPE>::m_default) + " in : [";
192 template<typename TYPE> std::ostream& operator <<(std::ostream& _os, const eproperty::List<TYPE>& _obj) {
List(CLASS_TYPE *_owner, const std::string &_name, const TYPE &_defaultValue, const std::string &_description="", void(CLASS_TYPE::*_setObs)()=nullptr)
Create a parameter with List of element parameter (nullptr if none).
Definition: List.hpp:31
std::string getInfo() const override
Description of the Propertys.
Definition: List.hpp:133
void add(const TYPE &_value, const std::string &_name, const std::string &_description="")
Add a value in the list of parameter.
Definition: List.hpp:57
void setDirectCheck(const TYPE &_newVal) override
Set the value of the current parameter (check range and ... if needed).
Definition: List.hpp:164
void setString(const std::string &_newVal) override
Set a new value of the Property (with string interface).
Definition: List.hpp:117
Template base of the property (have a generic set and get for string)
Definition: PropertyType.hpp:18
std::vector< std::string > getListValue() const override
Specific for eproperty::List to get all the possible values.
Definition: List.hpp:140
List(const TYPE &_defaultValue)
Create a parameter with List of element parameter (nullptr if none).
Definition: List.hpp:43
std::string getPropertyType() const override
Get the Property type of the class in string mode.
Definition: List.hpp:114
void rename(const std::string &_nameOld, const std::string &_nameNew)
Rename a value of the property.
Definition: List.hpp:101
std::vector< std::string > list()