Refreader Class Reference

#include <Refreader.h>

List of all members.

Public Member Functions

 Refreader ()
 Refreader (const Refreader &ref)
Refreaderoperator= (const Refreader &ref)
void clear ()
bool next (istream &ins, string &ln)
RefnewRef () throw (gbreferr)
string toString () const

Private Attributes

string authors
string consrtm
string title
string journal
int medline
int pubmed
string remark

Friends

ostream & operator<< (ostream &ou, const Refreader &ref)


Detailed Description

this class simply reads in the text fields without processing. The next methods reads in the next Reference from the flat file. The newRef() is a factory method that produce a Ref object with proper subclass type depending on the information provided in the flat file.

Check the vref.h class for proper definition of all subclasses of References.


Constructor & Destructor Documentation

Refreader::Refreader (  )  [inline]

this one is called to initialize the internal buffer for the first call

Refreader::Refreader ( const Refreader ref  ) 

References authors, consrtm, journal, medline, pubmed, remark, and title.


Member Function Documentation

Refreader & Refreader::operator= ( const Refreader ref  ) 

References authors, consrtm, journal, medline, pubmed, remark, and title.

void Refreader::clear (  ) 

References authors, consrtm, medline, pubmed, remark, and title.

Referenced by next().

bool Refreader::next ( istream ins,
string &  ln 
)

Simply reads in the next comple Reference object Since most author names are Last,F. and terminate the sentence with the same period. Occationaly it has institute as auther and it ends with the same period. I don't realy care about this now.

main reader method

References authors, clear(), consrtm, getf(), medline, pubmed, remark, title, and gbseq::VAL_START.

Referenced by gbseq::read().

Ref * Refreader::newRef (  )  throw (gbreferr)

The factory method, acting as the virtual constructor In case of some poor reference, I will return 0

Produces a new Ref object, returns a pointer to a Ref object.

References Ref::addRemark(), authors, consrtm, dissect(), length, medline, pubmed, R, remark, Journal::setMedline(), Journal::setPubmed(), substr(), and title.

Referenced by gbseq::read().

string Refreader::toString (  )  const

References authors, consrtm, medline, pubmed, remark, and title.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ou,
const Refreader ref 
) [friend]


Member Data Documentation

string Refreader::authors [private]

string Refreader::consrtm [private]

string Refreader::title [private]

string Refreader::journal [private]

Referenced by operator<<(), operator=(), and Refreader().

int Refreader::medline [private]

int Refreader::pubmed [private]

string Refreader::remark [private]


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

Generated on Wed Aug 10 11:57:14 2011 for Softwares from Orpara by  doxygen 1.5.6