MURE
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Static Private Attributes | List of all members
Serpent::VolumeCalcOutputReader Class Reference

Define a reader class. More...

#include <SerpentVolumeCalcOutputReader.hxx>

Inheritance diagram for Serpent::VolumeCalcOutputReader:
Serpent::OutputReader

Public Member Functions

 VolumeCalcOutputReader ()
 constructor
 
 ~VolumeCalcOutputReader () override
 deconstructor
 
ValErr_t GetVolume (const string &materialName)
 return volume for given material
 
void Clear () override
 clear data
 
string Print () override
 Printing method used for debugging.
 
VolumeCalcOutputReaderGetNewInstance () override
 get new instance (I think the method should be erased)
 
- Public Member Functions inherited from Serpent::OutputReader
 OutputReader ()
 constructor
 
virtual ~OutputReader ()
 destructor
 
virtual void Read (const string &fileName)
 
bool isFileRead () const
 returns if file was read
 
virtual void Clear ()=0
 
virtual string Print ()=0
 
virtual void Write (const string &fileName)
 writes data using Print method into new result file (for multi-run)
 
virtual OutputReaderGetNewInstance ()=0
 

Protected Member Functions

bool IsRead (const string &block) const
 is file already read
 
void ParseBlock (const string &block) override
 parse block
 
- Protected Member Functions inherited from Serpent::OutputReader
bool IsWhite (const string &line) const
 resturns true if line conststs of only white spaces
 
char GetSeparator () const
 resturns sepeparator (white space or semiclon)
 
bool HasPermision (const string &rowName) const
 returns true if row name(heading) is added to allowe rows
 
void AddAllowedRow (const string &rowName)
 adds row head to rows which are allowed to be read
 
void AddForbiddenRow (const string &rowName)
 adds row head to rows which are NOT allowed to be read
 
void AllowRowsByDefault ()
 sets default perrmision to read rows to true
 
void ForbiddRowsByDefault ()
 sets default perrmision to read rows to false
 
void SetSeparator (char separator)
 sets separator
 
virtual void ParseBlock (const string &block)=0
 
vector< string > GetPermittedRowNames () const
 gets all rows which can be read
 

Private Types

typedef map< string, ValErr_t * > Table
 

Private Attributes

TablefData
 

Static Private Attributes

static const char LEFT_BRACKET = '('
 
static const char RIGHT_BRACKET = ')'
 
static const string SKIPPED_PHRASE = string("set mv")
 
static const unsigned VALUE_INDEX = 2
 
static const unsigned ERROR_INDEX = 4
 

Additional Inherited Members

- Static Protected Attributes inherited from Serpent::OutputReader
static const char COMMENT_CHAR = '%'
 

Detailed Description

Define a reader class.

Author
J.Hajnrych
Version
1.0

Member Typedef Documentation

◆ Table

typedef map< string, ValErr_t *> Serpent::VolumeCalcOutputReader::Table
private

Constructor & Destructor Documentation

◆ VolumeCalcOutputReader()

Serpent::VolumeCalcOutputReader::VolumeCalcOutputReader ( )

constructor

◆ ~VolumeCalcOutputReader()

Serpent::VolumeCalcOutputReader::~VolumeCalcOutputReader ( )
override

deconstructor

Member Function Documentation

◆ Clear()

void Serpent::VolumeCalcOutputReader::Clear ( )
overridevirtual

clear data

Implements Serpent::OutputReader.

◆ GetNewInstance()

VolumeCalcOutputReader * Serpent::VolumeCalcOutputReader::GetNewInstance ( )
overridevirtual

get new instance (I think the method should be erased)

Implements Serpent::OutputReader.

◆ GetVolume()

ValErr_t Serpent::VolumeCalcOutputReader::GetVolume ( const string &  materialName)

return volume for given material

◆ IsRead()

bool Serpent::VolumeCalcOutputReader::IsRead ( const string &  block) const
protected

is file already read

◆ ParseBlock()

void Serpent::VolumeCalcOutputReader::ParseBlock ( const string &  block)
overrideprotectedvirtual

parse block

Implements Serpent::OutputReader.

◆ Print()

string Serpent::VolumeCalcOutputReader::Print ( )
overridevirtual

Printing method used for debugging.

Implements Serpent::OutputReader.

Member Data Documentation

◆ ERROR_INDEX

const unsigned Serpent::VolumeCalcOutputReader::ERROR_INDEX = 4
staticprivate

◆ fData

Table* Serpent::VolumeCalcOutputReader::fData
private

◆ LEFT_BRACKET

const char Serpent::VolumeCalcOutputReader::LEFT_BRACKET = '('
staticprivate

◆ RIGHT_BRACKET

const char Serpent::VolumeCalcOutputReader::RIGHT_BRACKET = ')'
staticprivate

◆ SKIPPED_PHRASE

const string Serpent::VolumeCalcOutputReader::SKIPPED_PHRASE = string("set mv")
staticprivate

◆ VALUE_INDEX

const unsigned Serpent::VolumeCalcOutputReader::VALUE_INDEX = 2
staticprivate

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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024