#include <STab1Reader.h>

Inheritance diagram for STab1Reader:

simplified Tab1 reader More...

Public Member Functions

std::string read (std::istream &is)
 read it More...
 
 STab1Reader ()
 construct it More...
 

Public Attributes

SP_STab1 stab1
 data that was read in More...
 

Static Protected Member Functions

static void getline (std::istream &is, std::string *buffer)
 put a line into buffer More...
 
static double getRealValue (const std::string &line, int index)
 get the index of 6 values as a double on line More...
 
static int getIntValue (const std::string &line, int index)
 get the index of 6 values as an integer on line More...
 
static void getLineValues_2Real_4Int (const std::string &line, double &f1, double &f2, int &i1, int &i2, int &i3, int &i4)
 get 2 floats and 4 ints a line More...
 
static void getLineValues_6Real (const std::string &line, double &f1, double &f2, double &f3, double &f4, double &f5, double &f6)
 get 6 floats on a line More...
 
static bool isTerminatorLine (const std::string &line)
 check if a line is a terminator (all zeros) More...
 
static std::string readTitle (std::istream &is, std::string *title)
 rad the one line title More...
 
static std::string readData (std::istream &is, STab1::Data *data)
 read a data set More...
 
static std::string readBlock (std::istream &is, STab1::Block *block)
 read a data block (contains 1 or more data sets) More...
 
static std::string readFile (std::istream &is, STab1 *stab1)
 read the simplified tab1 data More...
 

Detailed Description

simplified Tab1 reader

Constructor & Destructor Documentation

STab1Reader ( )
inline

construct it

Member Function Documentation

std::string read ( std::istream &  is)
void getline ( std::istream &  is,
std::string *  buffer 
)
staticprotected
double getRealValue ( const std::string &  line,
int  index 
)
staticprotected
int getIntValue ( const std::string &  line,
int  index 
)
staticprotected

get the index of 6 values as an integer on line

References Origen::BAD_INT, and STab1::ENDF_FIELD_LENGTH.

Referenced by STab1Reader::getLineValues_2Real_4Int().

void getLineValues_2Real_4Int ( const std::string &  line,
double &  f1,
double &  f2,
int &  i1,
int &  i2,
int &  i3,
int &  i4 
)
staticprotected

get 2 floats and 4 ints a line

References STab1Reader::getIntValue(), and STab1Reader::getRealValue().

Referenced by STab1Reader::isTerminatorLine().

void getLineValues_6Real ( const std::string &  line,
double &  f1,
double &  f2,
double &  f3,
double &  f4,
double &  f5,
double &  f6 
)
staticprotected

get 6 floats on a line

References STab1Reader::getRealValue().

bool isTerminatorLine ( const std::string &  line)
staticprotected

check if a line is a terminator (all zeros)

References STab1Reader::getLineValues_2Real_4Int().

Referenced by STab1Reader::readBlock(), STab1Reader::readData(), and STab1Reader::readFile().

std::string readTitle ( std::istream &  is,
std::string *  title 
)
staticprotected

rad the one line title

References STab1Reader::getline().

Referenced by STab1Reader::readFile().

std::string readData ( std::istream &  is,
STab1::Data data 
)
staticprotected
std::string readBlock ( std::istream &  is,
STab1::Block block 
)
staticprotected

read a data block (contains 1 or more data sets)

References STab1::Block::cr, STab1Reader::getline(), STab1Reader::isTerminatorLine(), STab1Reader::readData(), and STab1::Block::set.

Referenced by STab1Reader::readFile().

std::string readFile ( std::istream &  is,
STab1 stab1 
)
staticprotected

Member Data Documentation

SP_STab1 stab1

data that was read in

Referenced by YieldResourceIO_stab1::read(), and STab1Reader::read().


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