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

IO/control-device.h File Reference

abstract interface for controlling parameters. More...

#include <iostream.h>
#include <string>
#include "IO/mutator.h"

Include dependency graph for control-device.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  control_device_impl
 implementation class ("letter"). More...

class  ControlDevice
 envelope class. More...


Functions

template<class T> void RegisterAt (ControlDevice &Ctrl, std::string const &name, T &t)
 register variable t to ControlDevice. More...

template<class T> void RegisterAt (ControlDevice &Ctrl, char const *name, T &t)
 register variable t to ControlDevice. More...

ControlDevice GetStreamDevice (istream *in, std::string const &name="")
 a simple ControlDevice that reads name-value-pairs from a stream. More...

ControlDevice GetFileControlDevice (char const *filename, std::string const &name)
 a simple ControlDevice that reads name-value-pairs from a file. More...

ControlDevice GetCommandlineAndFileControlDevice (int argc, char *argv[], std::string const &filename, std::string const &name)
 ControlDevice that first reads from file and then from command line. More...

ControlDevice GetDuplexControlDevice (std::istream &in2, char const *filename, std::string const &name)
 ControlDevice that reads from given a stream and from a file. More...

ControlDevice GetDuplexControlDevice (std::istream &in2, std::string const &filename, std::string const &name)


Detailed Description

abstract interface for controlling parameters.

Parameters may for instance be

Todo:
Fix the memory leak in control_device_impl::add(std::string const&, Mutator* m). (The space m points to is lost forever.)

Definition in file control-device.h.


Function Documentation

template<class T>
void RegisterAt ControlDevice   Ctrl,
std::string const &    name,
T &    t
[inline]
 

register variable t to ControlDevice.

Definition at line 77 of file control-device.h.

References ControlDevice::add.

template<class T>
void RegisterAt ControlDevice   Ctrl,
char const *    name,
T &    t
[inline]
 

register variable t to ControlDevice.

Definition at line 85 of file control-device.h.

References ControlDevice::add.

ControlDevice GetStreamDevice istream *    in,
std::string const &    name = ""
 

a simple ControlDevice that reads name-value-pairs from a stream.

ControlDevice GetFileControlDevice char const *    filename,
std::string const &    name
 

a simple ControlDevice that reads name-value-pairs from a file.

ControlDevice GetCommandlineAndFileControlDevice int    argc,
char *    argv[],
std::string const &    filename,
std::string const &    name
 

ControlDevice that first reads from file and then from command line.

ControlDevice GetDuplexControlDevice std::istream &    in2,
char const *    filename,
std::string const &    name
 

ControlDevice that reads from given a stream and from a file.

ControlDevice GetDuplexControlDevice std::istream &    in2,
std::string const &    filename,
std::string const &    name
 


Copyright (c) Guntram Berti 1997-2002. See the GrAL Homepage for up-to-date information.

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