amroc/amr/IO/control-device.h File Reference

Read parameters from a file. More...

#include "mutator.h"
#include <iosfwd>
#include <string>
#include <iostream>

Go to the source code of this file.

Classes

class  control_device_impl
 Abstract interface for controlling parameters. More...
class  ControlDevice
 Envelope class for control_device_impl. More...

Functions

template<class T >
void RegisterAt (ControlDevice &Ctrl, const std::string &name, T &t)
template<class T >
void RegisterAt (ControlDevice &Ctrl, const char *name, T &t)
ControlDevice GetStreamDevice (std::istream *in, const std::string &name="")
ControlDevice GetFileControlDevice (const char *filename, const std::string &name)
ControlDevice GetCommandlineAndFileControlDevice (int argc, char *argv[], const std::string &filename, const std::string &name)
ControlDevice GetDuplexControlDevice (std::istream &in2, const char *filename, const std::string &name)
ControlDevice GetDuplexControlDevice (std::istream &in2, const std::string &filename, const std::string &name)

Detailed Description

Read parameters from a file.

Author:
Guntram Berti
Date:
1997

Function Documentation

ControlDevice GetCommandlineAndFileControlDevice ( int  argc,
char *  argv[],
const std::string &  filename,
const std::string &  name 
)
ControlDevice GetDuplexControlDevice ( std::istream &  in2,
const std::string &  filename,
const std::string &  name 
)
ControlDevice GetDuplexControlDevice ( std::istream &  in2,
const char *  filename,
const std::string &  name 
)
ControlDevice GetFileControlDevice ( const char *  filename,
const std::string &  name 
)

Referenced by GetFileControlDevice().

ControlDevice GetStreamDevice ( std::istream *  in,
const std::string &  name = "" 
)
template<class T >
void RegisterAt ( ControlDevice Ctrl,
const char *  name,
T &  t 
) [inline]

References ControlDevice::add().

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

References ControlDevice::add().

Generated on Thu Jun 30 02:19:01 2016 for AMROC's Parameter IO by  doxygen 1.6.3