GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSTextReader.hh File Reference

Namespaces for different useful fonctions reading input text file. Namespaces for material database file, MHD file and other files. More...

#include <fstream>
#include <sstream>
#include "GGEMS/tools/GGEMSTypes.hh"
Include dependency graph for GGEMSTextReader.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 GGEMSMaterialTextReader
 namespace reading material database file
 
 GGEMSTextReader
 namespace reading common text file
 
 GGEMSMHDReader
 namespace reading mhd header
 
 GGEMSRangeReader
 namespace reading range material in text file
 

Functions

std::string GGEMSMaterialReader::ReadMaterialName (std::string const &line)
 return the name of the material More...
 
GGfloat GGEMSMaterialReader::ReadMaterialDensity (std::string const &line)
 return the density of material More...
 
GGsize GGEMSMaterialReader::ReadMaterialNumberOfElements (std::string const &line)
 return the number of elements in material More...
 
std::string GGEMSMaterialReader::ReadMaterialElementName (std::string const &line)
 return the name of material element name More...
 
GGfloat GGEMSMaterialReader::ReadMaterialElementFraction (std::string const &line)
 return the number of element fraction More...
 
void GGEMSTextReader::SkipComment (std::ifstream &stream, std::string &line, char const comment='#')
 skip a special line beginning by a comment caracter More...
 
bool GGEMSTextReader::IsBlankLine (std::string const &line)
 check if the line is blank or not More...
 
void GGEMSTextReader::RemoveSpace (std::string &line)
 remove all spaces and tab from a string More...
 
std::string GGEMSMHDReader::ReadKey (std::string &line)
 get the key of MHD header More...
 
std::istringstream GGEMSMHDReader::ReadValue (std::string &line)
 get string stream of value More...
 
std::istringstream GGEMSRangeReader::ReadRangeMaterial (std::string &line)
 get string stream of value for material range More...
 

Detailed Description

Namespaces for different useful fonctions reading input text file. Namespaces for material database file, MHD file and other files.

Author
Julien BERT julie.nosp@m.n.be.nosp@m.rt@un.nosp@m.iv-b.nosp@m.rest..nosp@m.fr
Didier BENOIT didie.nosp@m.r.be.nosp@m.noit@.nosp@m.inse.nosp@m.rm.fr
LaTIM, Brest, FRANCE
Version
1.0
Date
Tuesday February 4, 2020

Definition in file GGEMSTextReader.hh.

Function Documentation

◆ ReadMaterialDensity()

GGfloat GGEMSMaterialReader::ReadMaterialDensity ( std::string const &  line)

return the density of material

Parameters
line- string to analyze
Returns
density of material

Definition at line 50 of file GGEMSTextReader.cc.

◆ ReadMaterialElementFraction()

GGfloat GGEMSMaterialReader::ReadMaterialElementFraction ( std::string const &  line)

return the number of element fraction

Parameters
line- string to analyze
Returns
number of elements fraction

Definition at line 114 of file GGEMSTextReader.cc.

◆ ReadMaterialElementName()

std::string GGEMSMaterialReader::ReadMaterialElementName ( std::string const &  line)

return the name of material element name

Parameters
line- string to analyze
Returns
name of the material element

Definition at line 101 of file GGEMSTextReader.cc.

◆ ReadMaterialName()

std::string GGEMSMaterialReader::ReadMaterialName ( std::string const &  line)

return the name of the material

Parameters
line- string to analyze
Returns
name of the material

Definition at line 41 of file GGEMSTextReader.cc.

◆ ReadMaterialNumberOfElements()

GGsize GGEMSMaterialReader::ReadMaterialNumberOfElements ( std::string const &  line)

return the number of elements in material

Parameters
line- string to analyze
Returns
number of elements in material

Definition at line 83 of file GGEMSTextReader.cc.