#include <istream-control-device.h>
Public Member Functions | |
istream_control_device_impl (std::istream *i, const std::string &nm, const std::string &ind="") | |
virtual | ~istream_control_device_impl () |
istream_control_device_impl * | get_sub_device (const std::string &nm) |
virtual std::string | name () const |
virtual void | update () |
virtual void | add (const std::string &name, Mutator *value) |
virtual void | register_at (ControlDevice &Ctrl) |
virtual void | register_at (ControlDevice &Ctrl, const std::string &prefix) |
virtual void | attach_to (std::istream &in_new) |
virtual void | print_values (std::ostream &out) const |
virtual void | print_values (std::ostream &out, const std::string &ind) const |
virtual void | read (std::istream &in) |
virtual void | print (std::ostream &out) const |
virtual void | print_unrecognized (std::ostream &out) const |
Protected Attributes | |
std::istream * | in |
std::string | name_ |
std::string | indent_ |
MutableVars | MV |
Friends | |
std::istream & | operator>> (std::istream &in, self &rhs) |
std::ostream & | operator<< (std::ostream &out, const self &rhs) |
istream_control_device_impl::istream_control_device_impl | ( | std::istream * | i, | |
const std::string & | nm, | |||
const std::string & | ind = "" | |||
) | [inline] |
Referenced by update().
virtual istream_control_device_impl::~istream_control_device_impl | ( | ) | [inline, virtual] |
virtual void istream_control_device_impl::add | ( | const std::string & | name, | |
Mutator * | value | |||
) | [inline, virtual] |
Implements control_device_impl.
References name_.
virtual void istream_control_device_impl::attach_to | ( | std::istream & | in_new | ) | [inline, virtual] |
Implements control_device_impl.
istream_control_device_impl* istream_control_device_impl::get_sub_device | ( | const std::string & | nm | ) | [inline, virtual] |
Implements control_device_impl.
virtual std::string istream_control_device_impl::name | ( | ) | const [inline, virtual] |
Implements control_device_impl.
Referenced by print_unrecognized().
void istream_control_device_impl::print | ( | std::ostream & | out | ) | const [virtual] |
References indent_, and print_values().
void istream_control_device_impl::print_unrecognized | ( | std::ostream & | out | ) | const [virtual] |
Implements control_device_impl.
References MutableVars::HasUnrecognized(), MV, name(), and MutableVars::PrintUnrecognized().
virtual void istream_control_device_impl::print_values | ( | std::ostream & | out, | |
const std::string & | ind | |||
) | const [inline, virtual] |
virtual void istream_control_device_impl::print_values | ( | std::ostream & | out | ) | const [inline, virtual] |
Implements control_device_impl.
Referenced by print().
void istream_control_device_impl::read | ( | std::istream & | in | ) | [virtual] |
References MV, MutableVars::ReadVariable(), and skip_comment().
virtual void istream_control_device_impl::register_at | ( | ControlDevice & | Ctrl, | |
const std::string & | prefix | |||
) | [inline, virtual] |
Reimplemented from controlable.
References MutableVars::AddVariable(), and MV.
virtual void istream_control_device_impl::register_at | ( | ControlDevice & | Ctrl | ) | [inline, virtual] |
Reimplemented from controlable.
virtual void istream_control_device_impl::update | ( | ) | [inline, virtual] |
Implements control_device_impl.
Reimplemented in multi_istream_control_device.
References in, indent_, and istream_control_device_impl().
Referenced by multi_istream_control_device::update().
std::ostream& operator<< | ( | std::ostream & | out, | |
const self & | rhs | |||
) | [friend] |
std::istream& operator>> | ( | std::istream & | in, | |
self & | rhs | |||
) | [friend] |
std::istream* istream_control_device_impl::in [protected] |
Referenced by update().
std::string istream_control_device_impl::indent_ [protected] |
MutableVars istream_control_device_impl::MV [protected] |
Referenced by print_unrecognized(), read(), register_at(), and multi_istream_control_device::update().
std::string istream_control_device_impl::name_ [protected] |
Referenced by add().