Data- type used for the []-operator of ConfigFile instances.
More...
#include <ConfigFile.h>
Data- type used for the []-operator of ConfigFile instances.
- See also
- Data ConfigFile::operator[](const std::string &id)
◆ Data()
icl::utils::ConfigFile::Data::Data |
( |
const std::string & |
id, |
|
|
ConfigFile & |
cf |
|
) |
| |
|
private |
◆ as()
template<class T >
T icl::utils::ConfigFile::Data::as |
( |
| ) |
const |
|
inline |
explicit cast into given type
Sometimes, the implicit automatic cast is not allowed due to ambiguities
◆ operator T()
template<class T >
icl::utils::ConfigFile::Data::operator T |
( |
| ) |
const |
|
inline |
automatic cast operator (lvalue type determines T)
This automatic cast automatically detects the destination (lvalue) type an calls the appropiate parse<T> function
◆ operator=() [1/2]
Data& icl::utils::ConfigFile::Data::operator= |
( |
const Data & |
d | ) |
|
|
inline |
special assignment for data instances
This does just copy the data-reference, not it's referenced value
◆ operator=() [2/2]
template<class T >
Data& icl::utils::ConfigFile::Data::operator= |
( |
const T & |
t | ) |
|
|
inline |
mutlti class assignment operator
assigns a string representation of given T instance to the according ConfigFile Entry T to string conversion is performed using std::string utils str- function, which internally exploits the std::ostream operator<< for given T instance. If given type T is not registered, an UnregisteredTypeException is thrown
◆ ConfigFile
for tight integration with parent ConfigFile class
◆ cf
◆ id
std::string icl::utils::ConfigFile::Data::id |
|
private |
internal id (config.foo.bar)
The documentation for this class was generated from the following file: