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

#include <SerpentResultOutputReader.hxx>

Inheritance diagram for Serpent::ResultOutputReader:
Serpent::OutputReader

Public Member Functions

 ResultOutputReader ()
 constructor
 
 ~ResultOutputReader () override
 destructor
 
ValErr_t GetKeff () const
 calculates and returns keff
 
void Clear () override
 clears data
 
string Print () override
 Printing method used when multi-run data is merged into one file.
 
ResultOutputReaderGetNewInstance () override
 creates new instance (for multi-run)
 
void Read (const vector< string > &fileNames)
 read multiple files (for multi-run)
 
void Read (const string &fileName) override
 read single file
 
- 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

void ParseBlock (const string &block) override
 parses block
 
TableGetData ()
 returns all data - for copy
 
- 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 vector< double > Row
 
typedef vector< pair< string, Row * > > Table
 

Private Member Functions

RowGetRow (stringstream &stream) const
 gets data row
 
void ParseLine (const string &line)
 parses line
 
TableGetMultiRunData (const vector< Table * > &dataVector)
 calculates equivalent table for multi run
 

Private Attributes

TablefData
 

Static Private Attributes

static const char COMMENT_SIGN = '%'
 
static const unsigned VALUE_INDEX = 0
 
static const unsigned STD_INDEX = 1
 

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

◆ Row

typedef vector< double > Serpent::ResultOutputReader::Row
private

◆ Table

typedef vector< pair < string, Row *> > Serpent::ResultOutputReader::Table
private

Constructor & Destructor Documentation

◆ ResultOutputReader()

Serpent::ResultOutputReader::ResultOutputReader ( )

constructor

◆ ~ResultOutputReader()

Serpent::ResultOutputReader::~ResultOutputReader ( )
override

destructor

Member Function Documentation

◆ Clear()

void Serpent::ResultOutputReader::Clear ( )
overridevirtual

clears data

Implements Serpent::OutputReader.

◆ GetData()

ResultOutputReader::Table * Serpent::ResultOutputReader::GetData ( )
protected

returns all data - for copy

◆ GetKeff()

ValErr_t Serpent::ResultOutputReader::GetKeff ( ) const

calculates and returns keff

◆ GetMultiRunData()

ResultOutputReader::Table * Serpent::ResultOutputReader::GetMultiRunData ( const vector< Table * > &  dataVector)
private

calculates equivalent table for multi run

◆ GetNewInstance()

ResultOutputReader * Serpent::ResultOutputReader::GetNewInstance ( )
overridevirtual

creates new instance (for multi-run)

Implements Serpent::OutputReader.

◆ GetRow()

ResultOutputReader::Row * Serpent::ResultOutputReader::GetRow ( stringstream &  stream) const
private

gets data row

◆ ParseBlock()

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

parses block

Implements Serpent::OutputReader.

◆ ParseLine()

void Serpent::ResultOutputReader::ParseLine ( const string &  line)
private

parses line

◆ Print()

string Serpent::ResultOutputReader::Print ( )
overridevirtual

Printing method used when multi-run data is merged into one file.

Implements Serpent::OutputReader.

◆ Read() [1/2]

void Serpent::ResultOutputReader::Read ( const string &  fileName)
overridevirtual

read single file

Reimplemented from Serpent::OutputReader.

◆ Read() [2/2]

void Serpent::ResultOutputReader::Read ( const vector< string > &  fileNames)

read multiple files (for multi-run)

Member Data Documentation

◆ COMMENT_SIGN

const char Serpent::ResultOutputReader::COMMENT_SIGN = '%'
staticprivate

◆ fData

Table* Serpent::ResultOutputReader::fData
private

◆ STD_INDEX

const unsigned Serpent::ResultOutputReader::STD_INDEX = 1
staticprivate

◆ VALUE_INDEX

const unsigned Serpent::ResultOutputReader::VALUE_INDEX = 0
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