io_manager Class Reference

#include <collection.h>


Detailed Description

Manage I/O type information.

This class is automatically created, utilized, and destroyed by io_base.

Definition at line 257 of file collection.h.


Public Member Functions

int add_type (io_base *iop)
 Add a type to the list.
int is_type (io_base *iop)
 Return 0 if iop points to a valid type.
int add_type (io_base *iop, const char *t)
 Add type iop to the manager assuming the type name t.
int remove_type (io_base *iop)
 Remove a type from the list.

Protected Types

typedef std::vector
< io_base * >
::iterator 
titer
 A useful definition for iterating through types.

Protected Member Functions

io_baseget_ptr (std::string stype)
 Get a pointer to type stype.
 io_manager ()
 Empty constructor.

Protected Attributes

std::vector< io_base * > tlist
 The list of types in the form of io_base pointers.

Member Function Documentation

int add_type ( io_base iop  ) 

Add a type to the list.

Unfortunately, add_type() cannot ensure that no type is added more than once, since the type is not specified until the entire constructor hierarchy has been executed and add_type() is called at the top of this hierarchy.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page