Go to Overview over all GrAL packages.
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

istream_control_device_impl Class Reference

#include <istream-control-device.h>

Inheritance diagram for istream_control_device_impl:

Inheritance graph
[legend]
Collaboration diagram for istream_control_device_impl:

Collaboration graph
[legend]
List of all members.

Public Methods

 istream_control_device_impl (std::istream *i, std::string const &nm, std::string const &ind="")
control_device_implget_sub_device (std::string const &nm)
virtual std::string name () const
virtual void update ()
virtual void add (const std::string &name, Mutator *value)
virtual void register_at (ControlDevice &Ctrl)
 expose internal data to ControlDevice Ctrl. More...

virtual void register_at (ControlDevice &Ctrl, const std::string &prefix)
 expose internal data to ControlDevice Ctrl, prepending prefix to the name. More...

virtual void attach_to (std::istream &in_new)
virtual void print_values (std::ostream &out) const
virtual void print_values (std::ostream &out, std::string const &ind) const
virtual void read (std::istream &in)
virtual void print (std::ostream &out) const
virtual void print_unrecognized (std::ostream &out) const
virtual void print_unrecognized (std::ostream &out, std::string const &prefix) const

Protected Attributes

std::istream * in
std::string name_
std::string indent_
MutableVars MV
std::list< self * > sub_devices_

Friends

std::istream & operator>> (std::istream &in, self &rhs)
std::ostream & operator<< (std::ostream &out, const self &rhs)

Constructor & Destructor Documentation

istream_control_device_impl::istream_control_device_impl std::istream *    i,
std::string const &    nm,
std::string const &    ind = ""
 

Definition at line 8 of file istream-control-device.C.

Referenced by get_sub_device.


Member Function Documentation

control_device_impl * istream_control_device_impl::get_sub_device std::string const &    nm [virtual]
 

Implements control_device_impl.

Definition at line 41 of file istream-control-device.C.

References add, GetMutator, in, indent_, istream_control_device_impl, and sub_devices_.

std::string istream_control_device_impl::name   const [virtual]
 

Implements control_device_impl.

Definition at line 13 of file istream-control-device.C.

References name_.

Referenced by add, print_unrecognized, read, and register_at.

void istream_control_device_impl::update   [virtual]
 

Implements control_device_impl.

Reimplemented in multi_istream_control_device.

Definition at line 15 of file istream-control-device.C.

References in, MV, and MutableVars::ReadValues.

void istream_control_device_impl::add const std::string &    name,
Mutator   value
[virtual]
 

Definition at line 17 of file istream-control-device.C.

References MutableVars::AddVariable, MV, and name.

Referenced by get_sub_device.

void istream_control_device_impl::register_at ControlDevice   Ctrl [virtual]
 

expose internal data to ControlDevice Ctrl.

Reimplemented from controlable.

Definition at line 20 of file istream-control-device.C.

void istream_control_device_impl::register_at ControlDevice   Ctrl,
const std::string &    prefix
[virtual]
 

expose internal data to ControlDevice Ctrl, prepending prefix to the name.

Reimplemented from controlable.

Definition at line 22 of file istream-control-device.C.

References ControlDevice::add, GetMutator, and name.

void istream_control_device_impl::attach_to std::istream &    in_new [virtual]
 

Implements control_device_impl.

Definition at line 28 of file istream-control-device.C.

References in.

void istream_control_device_impl::print_values std::ostream &    out const [virtual]
 

Implements control_device_impl.

Definition at line 30 of file istream-control-device.C.

References MV, and MutableVars::PrintValues.

Referenced by print.

void istream_control_device_impl::print_values std::ostream &    out,
std::string const &    ind
const [virtual]
 

Definition at line 32 of file istream-control-device.C.

References MV, and MutableVars::PrintValues.

void istream_control_device_impl::read std::istream &    in [virtual]
 

Definition at line 49 of file istream-control-device.C.

References in, MV, name, print_unrecognized, MutableVars::ReadVariable, and skip_comment.

void istream_control_device_impl::print std::ostream &    out const [virtual]
 

Definition at line 72 of file istream-control-device.C.

References indent_, and print_values.

void istream_control_device_impl::print_unrecognized std::ostream &    out const [virtual]
 

Implements control_device_impl.

Definition at line 78 of file istream-control-device.C.

Referenced by read.

void istream_control_device_impl::print_unrecognized std::ostream &    out,
std::string const &    prefix
const [virtual]
 

Implements control_device_impl.

Definition at line 81 of file istream-control-device.C.

References MutableVars::HasUnrecognized, MV, name, MutableVars::PrintUnrecognized, and sub_devices_.


Friends And Related Function Documentation

std::istream& operator>> std::istream &    in,
self &    rhs
[friend]
 

Definition at line 43 of file istream-control-device.h.

std::ostream& operator<< std::ostream &    out,
const self &    rhs
[friend]
 

Definition at line 45 of file istream-control-device.h.


Member Data Documentation

std::istream* istream_control_device_impl::in [protected]
 

Definition at line 49 of file istream-control-device.h.

Referenced by attach_to, get_sub_device, read, and update.

std::string istream_control_device_impl::name_ [protected]
 

Definition at line 50 of file istream-control-device.h.

Referenced by name.

std::string istream_control_device_impl::indent_ [protected]
 

Definition at line 51 of file istream-control-device.h.

Referenced by get_sub_device, and print.

MutableVars istream_control_device_impl::MV [protected]
 

Definition at line 52 of file istream-control-device.h.

Referenced by add, print_unrecognized, print_values, read, update, and multi_istream_control_device::update.

std::list<self*> istream_control_device_impl::sub_devices_ [protected]
 

Definition at line 53 of file istream-control-device.h.

Referenced by get_sub_device, and print_unrecognized.


The documentation for this class was generated from the following files:
Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

Generated at Tue Feb 26 15:57:09 2002 for External control by doxygen 1.2.11-20011104 written by Dimitri van Heesch, © 1997-2000