Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Record Class Reference

Record style file model. More...

#include <Record.h>

Inheritance diagram for Record:

Inheritance graph
[legend]
List of all members.

Public Methods

 Record (int n)
 ~Record ()
bool open (const string &filename)
bool readline (string &line)
void put_ith (int i, const string &v)
string get_ith (int i)
string get_filename ()
 get file name. More...

int get_size ()
 return Size of the record. More...

void clear_record_buf ()
 clear the reading buffer. More...

bool good ()
bool eof ()

Protected Methods

virtual void preprocess ()
virtual void postprocess ()
virtual void read_entry ()=0

Detailed Description

Record style file model.


Constructor & Destructor Documentation

Record::Record ( int n )
 

Parameters:
n   size of record (= # fields)

Record::~Record ( )
 


Member Function Documentation

void Record::clear_record_buf ( )
 

clear the reading buffer.

bool Record::eof ( )
 

Returns:
true if the file hit the end false if there still remains to read

string Record::get_filename ( )
 

get file name.

string Record::get_ith ( int i )
 

Parameters:
i   Index of the target field.
Returns:
i-th field of the record.

int Record::get_size ( )
 

return Size of the record.

bool Record::good ( )
 

Returns:
true If the input stream is good. false If the input stream is bad.

bool Record::open ( const string & filename )
 

Returns:
true If open succeeds. false If open fails.

Reimplemented in Paired.

void Record::postprocess ( ) [inline, protected, virtual]
 

void Record::preprocess ( ) [inline, protected, virtual]
 

void Record::put_ith ( int i,
const string & v )
 

Parameters:
i   Index of the target field.
v   Value to put on the i-th field of the record.

void Record::read_entry ( ) [protected, pure virtual]
 

Reimplemented in TFfile.

bool Record::readline ( string & line )
 

Parameters:
line   Input will be copied into this variable.
Returns:
true If reading line succeeds. false If reading fails or reads EOF.


The documentation for this class was generated from the following file:
Generated at Wed Jul 3 14:55:43 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001