Go to the documentation of this file.
31 #include <Ice/LocalObject.h>
77 template <
typename PropertyType>
141 operator PropertyType()
147 template<
class T = PropertyType>
148 std::enable_if_t<std::is_same_v<T, std::string>,
T>
155 template<
class T = PropertyType>
156 std::enable_if_t<std::is_same_v<T, std::vector<std::string>>,
T>
160 for (
auto& val : vals)
170 template <
int>
struct Qualifier
178 PropertyDefinition<PropertyType> definition;
192 template <
typename PropertyType>
197 definition(definition),
199 properties(properties)
205 template <
typename PropertyType>
210 return definition.getValue(prefix, properties);
214 template <
typename PropertyType>
219 return definition.isRequired();
223 template <
typename PropertyType>
228 return definition.isConstant();
232 template <
typename PropertyType>
237 return definition.isSet(prefix, properties);
PropertyDefinition< PropertyType >::PropertyValuesMap PropertyValuesMap
Property value map type definition.
PropertyType getValue()
Returns the property value set in a config file or passed as a command-line option.
std::map< std::string, ValueEntry > PropertyValuesMap
std::enable_if_t< std::is_same_v< T, std::string >, T > getValueAndReplaceAllVars()
std::shared_ptr< Value > value()
bool isSet() const
Checks whether the property is set.
Provides access to Ice properties with extended capabilities.
Property(PropertyDefinition< PropertyType > definition, std::string prefix, Ice::PropertiesPtr properties)
Property constructor.
std::enable_if_t< std::is_same_v< T, std::vector< std::string > >, T > getValueAndReplaceAllVars()
bool isConstant() const
Checks if this property is constant or if it can be changed at runtime.
std::string FileSystemPathBuilder_ApplyFormattingAndResolveEnvAndCMakeVars(std::string const &value)
bool isRequired() const
Checks if this property is required.
PropertyDefinition defines a property that will be available within the PropertyUser.
This file offers overloads of toIce() and fromIce() functions for STL container types.