FileReader

Class provides utilities for reading the file format of the filter architecture.

[ FilterKit | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

AUTHORS
GOALS
USAGE

Class Summary

class FileReader
{
public:
bool MolName;
bool PartNum;
bool Score2;
bool Size;
int ReadParamsLine(const char *line);
int MakeParamsLine();
int ReadFileLine(char *line, vector<MyTrans *> *trans);
protected:
}; // FileReader

Back to the top of FileReader


AUTHORS

Ram Nathaniel. (ramn@math.tau.ac.il)

Copyright: SAMBA group, Tel-Aviv Univ. Israel, 1999.

Back to the top of FileReader


GOALS

Create an easy-to-use interface for the file format of the filter architecture, providing reading and writing utility functions.

Back to the top of FileReader


USAGE

Once created the FileReader object can hold information of the options used in a specific file (which fields are used). The object can be initilized using the PARAMS line in the file, and changed at any time to match the new usage profile of the output file. For more details see the filter architecture documentation and the Skeleton filter program.

Back to the top of FileReader


bool MolName;

indicates which fields are in use.

    bool MolName;

Back to the top of FileReader


bool PartNum;

is PartNumber field in use?

    bool PartNum;

Back to the top of FileReader


bool Score2;

is Score2 field in use.

    bool Score2;

Back to the top of FileReader


bool Size;

is Size field in use.

    bool Size;

Back to the top of FileReader


int ReadParamsLine(const char *line);

read the PARAMS line of the input file and init fields accordingly

    int ReadParamsLine(const char *line);

Back to the top of FileReader


int MakeParamsLine();

creates a new params line for the output file using the fields values.

    int MakeParamsLine();

Back to the top of FileReader


int ReadFileLine(char *line, vector<MyTrans *> *trans);

process a line of input, return 1 if END was encountered, // terminate process if TERMINATE was encountered

    int ReadFileLine(char *line, vector<MyTrans *> *trans);

Back to the top of FileReader


All Members

public:
bool MolName;
bool PartNum;
bool Score2;
bool Size;
int ReadParamsLine(const char *line);
int MakeParamsLine();
int ReadFileLine(char *line, vector<MyTrans *> *trans);
protected:

Back to the top of FileReader


Ancestors

Class does not inherit from any other class.

Back to the top of FileReader


Descendants

Class is not inherited by any others.

Back to the top of FileReader


Generated from source by the Cocoon utilities on Thu Jan 28 14:36:44 1999 .

Report problems to jkotula@unimax.com