|
| container (char aShortName, const std::string &aLongName, const std::string &aExplanation, std::initializer_list< typename Container::value_type > aDefault={}) |
|
| container (const container &)=delete |
|
void | fWriteCfgLines (std::ostream &aStream, const char *aPrefix) const override |
|
void | fWriteValue (std::ostream &aStream) const override |
| write textual representation of value to a std::ostream More...
|
|
void | fSetMe (std::istream &aStream, const internal::sourceItem &aSource) override |
| function to set the value from a string, remembering the source More...
|
|
void | fCheckRange () const override |
|
| baseForContainer (char aShortName, std::string aLongName, std::string aExplanation, short aNargs) |
|
bool | fIsSet () const override |
| check if this option was set, regardless of from command line or config file More...
|
|
bool | fIsContainer () const override |
|
void | fAddDefaultFromStream (std::istream &aStream) override |
| special for use in the shellScriptOptionParser More...
|
|
| typed_base (Types ... args) |
|
virtual void | fAddToRange (rangeValueType aValue) |
| add a value to the range of allowed values More...
|
|
std::enable_if<(!std::is_same< rangeValueType, std::string >::value) &&std::is_same< TT, std::string >::value, void >::type | fAddToRange (const TT &aString) |
|
void | fAddToRange (InputIt aBegin, InputIt aEnd) |
| add values from the iterator range [aBegin,aEnd) to the range of allowed values More...
|
|
void | fAddToRange (const std::vector< TT > &aRange) |
| add values from a vector (may be given as initializer list) to the range of allowed values More...
|
|
void | fAddToRangeFromStream (std::istream &aStream) override |
|
void | fWriteRange (std::ostream &aStream) const override |
|
virtual void | fCheckValueForRange (const compareValueType &aValue) const |
|
| base (char aShortName, const std::string &aLongName, const std::string &aExplanation, short aNargs) |
| construct an object of type base More...
|
|
virtual | ~base () |
|
virtual void | fRequire (const base *aOtherOption) |
| require aOtherOption when this option is set More...
|
|
virtual void | fRequire (std::vector< const base * > aOtherOptions) |
| add vector of other options, particlularly nice for use with initializer list More...
|
|
template<typename InputIt > |
void | fRequire (InputIt aBegin, InputIt aEnd) |
| add all options from the pair of iterators [aBegin,aEnd) to the list of required options More...
|
|
virtual void | fForbid (const base *aOtherOption) |
| forbid aOtherOption when this option is set More...
|
|
virtual void | fForbid (std::vector< const base * > aOtherOptions) |
| add vector of other options, particlularly nice for use with initializer list More...
|
|
template<typename InputIt > |
void | fForbid (InputIt aBegin, InputIt aEnd) |
| add all options from the pair of iterators [aBegin,aEnd) to the list of forbidden options More...
|
|
const std::string & | fGetLongName () const |
| returns long name of option, usually only for internal use. More...
|
|
template<typename T, typename Container = std::vector<T>>
class options::container< T, Container >
template for container-based options.
the container is by defalt a std::vector. If a non-vector container is used it needs to have a push_back.
Definition at line 789 of file Options.h.