GGEMS  1.1
GPU GEant4-based Monte Carlo Simulations
GGEMSTextReader Namespace Reference

namespace reading common text file More...

Functions

void SkipComment (std::ifstream &stream, std::string &line, char const comment='#')
 skip a special line beginning by a comment caracter More...
 
bool IsBlankLine (std::string const &line)
 check if the line is blank or not More...
 
void RemoveSpace (std::string &line)
 remove all spaces and tab from a string More...
 

Detailed Description

namespace reading common text file

Function Documentation

◆ IsBlankLine()

bool GGEMSTextReader::IsBlankLine ( std::string const &  line)

check if the line is blank or not

Parameters
line- string to analyze
Returns
true is blank line otherwize false

Definition at line 146 of file GGEMSTextReader.cc.

◆ RemoveSpace()

void GGEMSTextReader::RemoveSpace ( std::string &  line)

remove all spaces and tab from a string

Parameters
line- string to analyze

Definition at line 156 of file GGEMSTextReader.cc.

◆ SkipComment()

void GGEMSTextReader::SkipComment ( std::ifstream &  stream,
std::string &  line,
char const  comment = '#' 
)

skip a special line beginning by a comment caracter

Parameters
stream- stream of a file
line- line containing the string of the line
comment- special comment caracter to skip

Definition at line 131 of file GGEMSTextReader.cc.