Struct SectionOption¶
- Defined in File ConfigParser.h
Struct Documentation¶
-
struct
SectionOption¶ A simple container for importing options from a config file.
Public Functions
-
SectionOption()¶ Default constructor for SectionOption.
-
string
getOption(string refval)¶ Returns the value for the provided reference from within the key.
- Return
- the requested value as a string. Returns string “null” if no reference is found.
- Parameters
refval: the reference to obtain the value of
Friends
-
ostream &
operator<<(ostream &os, const SectionOption &k)¶ Overloading the << operator for outputting to the output stream.
- Return
- os the output stream.
- Parameters
os: the output stream.k: the KeyOption object.
-
istream &
operator>>(istream &is, SectionOption &k)¶ Overloading the >> operator for inputting from an input stream.
- Return
- is the input stream
- Parameters
is: the input streamk: the KeyOption object
-