Class xlifepp::iomel::StringInput#
-
class StringInput#
-
Collaboration diagram for xlifepp::iomel::StringInput:
This class is used by the function Mesh::loadMelina to read data from a file containing a mesh in Melina format.
Public Functions
-
StringInput()#
-
default constructor
-
StringInput(const std::string &filename)#
-
constructor by file name (opens stream)
constructor by filename (opens stream)
-
~StringInput()#
-
destructor (closes stream)
-
char char2code(const char)#
-
char2code returns melina++’s code of a char
-
inline char code() const#
-
current string code
-
inline std::string endWords()#
-
return end words
-
void eval()#
-
computes current input string code (si_code_) and value
-
inline std::string File() const#
-
return file name
-
int integerValue() const#
-
current string integer value
-
std::ifstream &next()#
-
get next value of string
-
std::ifstream &nextInteger()#
-
find next integer-valued string
-
std::ifstream &nextReal()#
-
find next real-valued string
-
std::ifstream &nextString()#
-
find next string-valued string
-
std::ifstream &nextWord()#
-
find next word in input file
-
std::ifstream ¬Comment()#
-
find next non-comment string in input file
-
std::ifstream ¬Word(const char)#
-
find next input string of type ‘char’
-
std::string previousString() const#
-
previous string value
-
void print()#
-
main routine to print
-
void print(const std::string&)#
-
print input string to filename according to code
-
real_t realValue() const#
-
current string real value
-
void stop(const char)#
-
stop on reading (type ‘char’ string found)
-
std::ifstream &String()#
-
get next string-valued string
-
std::string value() const#
-
current string value
-
std::ifstream &word()#
-
find word in input file
-
std::ifstream &word(char*)#
-
find given (char*) word in input file
-
std::ifstream &word(const std::string&)#
-
find given (string) word in input file
-
std::ifstream &wordBegin(char*)#
-
find (char*)word as the beginning of a string in input file
-
std::ifstream &wordBegin(const std::string&)#
-
find (string)word as the beginning of a string
-
std::ifstream &wordContain(char*)#
-
find (char*)word as substring of a string in input file
-
std::ifstream &wordContain(const std::string&)#
-
find (string)word as substring of a string
Public Members
-
std::ifstream si_stream_#
-
input file stream
-
StringInput()#