|
GGEMS
1.1
GPU GEant4-based Monte Carlo Simulations
|
Go to the documentation of this file. 1 #ifndef GUARD_GGEMS_IO_GGEMSTEXTREADER_HH
2 #define GUARD_GGEMS_IO_GGEMSTEXTREADER_HH
44 namespace GGEMSMaterialReader
100 void SkipComment(std::ifstream& stream, std::string& line,
char const comment =
'#');
130 std::string
ReadKey(std::string& line);
138 std::istringstream
ReadValue(std::string& line);
156 #endif // End of GUARD_GGEMS_IO_GGEMSTEXTREADER_HH
void SkipComment(std::ifstream &stream, std::string &line, char const comment='#')
skip a special line beginning by a comment caracter
GGsize ReadMaterialNumberOfElements(std::string const &line)
return the number of elements in material
std::string ReadMaterialName(std::string const &line)
return the name of the material
std::string ReadMaterialElementName(std::string const &line)
return the name of material element name
std::istringstream ReadRangeMaterial(std::string &line)
get string stream of value for material range
GGfloat ReadMaterialElementFraction(std::string const &line)
return the number of element fraction
namespace reading common text file
namespace reading range material in text file
Redefining types for OpenCL device and host.
void RemoveSpace(std::string &line)
remove all spaces and tab from a string
bool IsBlankLine(std::string const &line)
check if the line is blank or not
GGfloat ReadMaterialDensity(std::string const &line)
return the density of material
namespace reading mhd header
std::string ReadKey(std::string &line)
get the key of MHD header
std::istringstream ReadValue(std::string &line)
get string stream of value