Extract all parameters from an XSDIR line.
More...
#include <XSDIRLine.hxx>
|
static string | NextWord (string Line, int &start, char sep=' ', char alt_sep='\0') |
| Find the next word in a line. More...
|
|
static string | PreviousWord (string Line, int &start, char sep=' ', char alt_sep='\0') |
| Find the previous word in a line. More...
|
|
static void | ToLower (string &Line) |
| convert a string to Lower case More...
|
|
static void | ToUpper (string &Line) |
| convert a string to Upper case More...
|
|
static int | Find (const char *search, string Line) |
| Find search in Line from the begining. More...
|
|
static int | rFind (const char *search, string Line) |
| Find search in Line from the end. More...
|
|
template<class out_T , class in_T > |
static out_T | convert (const in_T &t) |
| convert a input type (in_T ) to another (out_T ). More...
|
|
template<class T > |
static bool | ToNumber (T &t, const std::string &s, std::ios_base &(*f)(std::ios_base &)) |
| try to convert a string to a number. More...
|
|
static int | GetStartWord (string Line, int CurrentPosition, char sep=' ', char alt_sep='\0') |
| Find the start of a word in a line. More...
|
|
static int | GetEndWord (string Line, int CurrentPosition, char sep=' ', char alt_sep='\0') |
| Find the end of a word in a line. More...
|
|
static string | ReplaceAll (string InLine, string ToReplace, string By) |
| Replace a sub-string by an other in a string. More...
|
|
static bool | IsDouble (const std::string &s) |
|
Extract all parameters from an XSDIR line.
- Author
- PTO
- Version
- 0.1
XSDIRLine::XSDIRLine |
( |
string * |
line, |
|
|
int |
n |
|
) |
| |
Normal Constructor. Extraction of parameters of an XSDIR line
- Parameters
-
line | : a string array ([n]) of XSDIR line for a given isotope |
n | : dimension of the array line |
XSDIRLine::XSDIRLine |
( |
string |
line | ) |
|
Normal Constructor. Extraction of parameters of an XSDIR line
- Parameters
-
line | : the XSDIR line for a given isotope (1 line) |
void XSDIRLine::AddNewPathInDirLine |
( |
string |
path | ) |
|
modify rhe path in the xsdir line (for futher building of xsdir)
void XSDIRLine::ClearDoubleSpace |
( |
string & |
Line | ) |
|
|
private |
clear double space in a line
void XSDIRLine::ContinuationSymbol |
( |
string * |
Line, |
|
|
int |
N |
|
) |
| |
|
private |
find the continuation symbol ("+" or "&") and its position
int XSDIRLine::GetDataType |
( |
| ) |
|
|
inline |
returns data type storage (1=ascii, 2=binary)
string XSDIRLine::GetDirLine |
( |
| ) |
|
|
inline |
int XSDIRLine::GetEntriesPerRecord |
( |
| ) |
|
|
inline |
returns entries per record
string XSDIRLine::GetExtension |
( |
| ) |
|
|
inline |
returns in ZA.id name, the ".id" string
char XSDIRLine::GetExtensionType |
( |
| ) |
|
|
inline |
returns the extension type (e.g. in 92238.60c returns "c")
string XSDIRLine::GetIsotopeName |
( |
| ) |
|
|
inline |
returns Isotope name (e.g. in 92238.60c returns "92238")
double XSDIRLine::GetMass |
( |
| ) |
|
|
inline |
returns the nucleide weight in Atomic Mass Unit
string XSDIRLine::GetPath |
( |
| ) |
|
|
inline |
returns the path if exist else 0
string XSDIRLine::GetPtable |
( |
| ) |
|
|
inline |
returns the "ptable" string when exists in xsdir line
int XSDIRLine::GetRecordLength |
( |
| ) |
|
|
inline |
returns the record length
int XSDIRLine::GetStartRecord |
( |
| ) |
|
|
inline |
returns the starting record of data
int XSDIRLine::GetTableLength |
( |
| ) |
|
|
inline |
returns the length of the 2nd block
double XSDIRLine::GetTemperature |
( |
| ) |
|
|
inline |
returns the temperature at which XS are processed
double XSDIRLine::GetTemperatureInMeV |
( |
| ) |
|
|
inline |
returns the temperature at which XS are processed
string XSDIRLine::GetXSFileName |
( |
| ) |
|
|
inline |
returns the XS file name (path/filename)
returns isomeric state (0=ground state, 1= 1st excited,...)
void XSDIRLine::PrintFormatted |
( |
string |
BaseName, |
|
|
string |
BaseVersion, |
|
|
string |
Builder, |
|
|
ostream & |
Out = cout |
|
) |
| |
Print XSDIRLine in a special format for BaseSummary.dat file.
- Parameters
-
BaseName | : the name of the base (e.g. ENDFB, JEFF, ...) |
BaseVersion | : the version of the base (e.g. 6.1, 3.2, ...) |
Builder | : the base builder (one of STD, JOY, MOD) |
Out | : Output stream |
void XSDIRLine::ReadLine |
( |
| ) |
|
|
private |
extracts data from the xsdir line
void XSDIRLine::SetA |
( |
int |
A | ) |
|
|
inline |
void XSDIRLine::SetI |
( |
int |
I | ) |
|
|
inline |
void XSDIRLine::SetZ |
( |
int |
Z | ) |
|
|
inline |
void XSDIRLine::SpecialMTCase |
( |
| ) |
|
|
private |
number of nucleons (A=0 means natural isotopes)
int XSDIRLine::fContinuationPosition |
|
private |
Position of Continuation symbol in the Current fLine.
char XSDIRLine::fContinuationSymbol |
|
private |
Continuation symbol in xsdir (a "+" or "&")
Data Type (1=ascii, 2=binary)
string XSDIRLine::fDirLine |
|
private |
int XSDIRLine::fEntriesPerRecord |
|
private |
Number of entries per record.
string XSDIRLine::fExtension |
|
private |
Isotope extension (e.g. ".60c")
Isomeric state (Ground State, ith excited)
string XSDIRLine::fIsotopeName |
|
private |
Isotope Name of the Original ENDF Library.
Mass of an isotope in neutron mass unit (MCNP convention)
the path where to find library if given else 0
string XSDIRLine::fPtable |
|
private |
int XSDIRLine::fRecordLength |
|
private |
int XSDIRLine::fStartRecord |
|
private |
First Start Record for the Isotope.
int XSDIRLine::fTableLength |
|
private |
Length of the second block (XS table)
double XSDIRLine::fTemperature |
|
private |
Temperature of the Cross-section.
string XSDIRLine::fXSFileName |
|
private |
File Name of the Original ENDF Library.
The documentation for this class was generated from the following files: