io_type_info Class Reference

#include <collection.h>

Inheritance diagram for io_type_info:

io_base

Detailed Description

User interface to provide I/O type information.

Definition at line 324 of file collection.h.


Public Member Functions

Type manipulation
int is_type (std::string stype)
 Return 0 if stype is a valid I/O type.
int remove_type (std::string stype)
 Remove stype from the list of valid I/O types.
virtual int clear_types ()
 Remove all types in the list of valid I/O types.
void type_summary (std::ostream *outs, bool pointers=false)
 Print a summary of valid types to the outs stream.
int add_type (io_base *iop)
 Add an I/O type to the list.

Protected Types

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

Protected Member Functions

int static_fout (coutput *co, out_file_format *out)
 Output the static information for the I/O types.
int static_fout_restricted (coutput *co, out_file_format *out, std::set< std::string, string_comp > list)
 Output the static information for the I/O types not in the list.

Member Function Documentation

int remove_type ( std::string  stype  ) 

Remove stype from the list of valid I/O types.

This method is dangerous, as it can't check to ensure that no collection has remaining objects of the type to be removed.

virtual int clear_types (  )  [virtual]

Remove all types in the list of valid I/O types.

This method is dangerous as it doesn't ensure that all collections are empty.


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