42 #ifndef SET_OPTIONS_FROM_STREAM_NODE_H
43 #define SET_OPTIONS_FROM_STREAM_NODE_H
45 #include "OptionsFromStreamPack_SetOptionsFromStream.hpp"
46 #include "OptionsFromStreamPack_StringToIntMap.hpp"
48 namespace OptionsFromStreamPack {
69 ,
int num_options,
const char* option_names[]
70 ,
bool exists_optional =
true );
88 virtual void setOption(
int option_num,
const std::string& option_value ) = 0;
92 bool exists_optional_;
98 #endif // SET_OPTIONS_FROM_STREAM_NODE_H
Extracts options from a text stream and then allows convenient access to them.
Map a string to an enumeration.
void set_options(const OptionsFromStream &options)
Overridden from SetOptionsFromStream and calls setOption(...).
Abstact interface for objects that have options to be set that are contained in an OptionsFromStreamO...
SetOptionsFromStreamNode(const std::string &options_group, int num_options, const char *option_names[], bool exists_optional=true)
Constructs with the name of the options group and the names of the options.
virtual void setOption(int option_num, const std::string &option_value)=0
To be overridden by the subclass to set an option given its integer position and the option value...
Node class for setting options from a stream.