SeldonData::FormatText Class Reference

Input/ouput class to read text files. More...

#include <Format.hxx>

Inheritance diagram for SeldonData::FormatText:

SeldonData::Format List of all members.

Public Member Functions

 FormatText () throw ()
 Default constructor.
 FormatText (string separator) throw ()
 Constructor.
 FormatText (fstream::fmtflags flags, string separator="\t\t") throw ()
 Constructor.
 FormatText (fstream::fmtflags flags, streamsize precision, streamsize width=-1, string separator="\t\t") throw ()
 Constructor.
 ~FormatText () throw ()
 Destructor.
void SetSeparator (string separator)
 Sets the separator.
void SetFlags (ofstream::fmtflags flags)
void SetPrecision (streamsize precision)
 Sets floating-point decimal presision.
void SetWidth (streamsize width)
 Sets field width.
template<class TG>
void Read (string FileName, RegularGrid< TG > &G) const
 Reads a text file.
template<class TG>
void Read (ifstream &FileStream, RegularGrid< TG > &G) const
 Reads a text file.
template<class TG, int N>
void Read (string FileName, GeneralGrid< TG, N > &G) const
 Reads a text file.
template<class TG, int N>
void Read (ifstream &FileStream, GeneralGrid< TG, N > &G) const
 Reads a text file.
template<class TG>
void Write (RegularGrid< TG > &G, string FileName) const
 Writes a text file.
template<class TG>
void Write (RegularGrid< TG > &G, ofstream &FileStream) const
 Writes a text file.
template<class TG, int N>
void Write (GeneralGrid< TG, N > &G, string FileName) const
 Writes a text file.
template<class TG, int N>
void Write (GeneralGrid< TG, N > &G, ofstream &FileStream) const
 Writes a text file.
template<class TD, int N, class TG>
void Read (string FileName, Data< TD, N, TG > &D) const
 Reads a text file.
template<class TD, int N, class TG>
void Read (ifstream &FileStream, Data< TD, N, TG > &D) const
 Reads a text file.
template<class TD, int N, class TG>
void Write (Data< TD, N, TG > &D, string FileName) const
 Writes a text file.
template<class TD, int N, class TG>
void Write (Data< TD, N, TG > &D, ofstream &FileStream) const
 Writes a text file.
template<class TA, int N>
void Read (string FileName, Array< TA, N > &A) const
 Reads a text file.
template<class TA, int N>
void Read (ifstream &FileStream, Array< TA, N > &A) const
 Reads a text file.
template<class TA>
void Read (ifstream &FileStream, Array< TA, 1 > &A) const
 Reads a text file.
template<class TA, int N>
void Write (Array< TA, N > &A, string FileName) const
 Writes a text file.
template<class TA, int N>
void Write (Array< TA, N > &A, ofstream &FileStream) const
 Writes a text file.

Protected Attributes

string separator_
fstream::fmtflags flags_
streamsize precision_
streamsize width_

Detailed Description

Input/ouput class to read text files.


Member Function Documentation

void SeldonData::FormatText::SetSeparator ( string  separator  ) 

Sets the separator.

Parameters:
separator the new separator.

void SeldonData::FormatText::SetPrecision ( streamsize  precision  ) 

Sets floating-point decimal presision.

Parameters:
precision floating-point decimal presision.

void SeldonData::FormatText::SetWidth ( streamsize  width  ) 

Sets field width.

Parameters:
width field width.


The documentation for this class was generated from the following files:
Generated on Tue Nov 17 11:20:52 2009 for SeldonData by  doxygen 1.5.1