28 #ifndef LHA_H_INCLUDED 29 #define LHA_H_INCLUDED 90 std::string
nextLine(std::ifstream &in);
101 std::vector<std::string>
split(std::string
const &line);
116 bool isBlockLine(std::vector<std::string>
const &line);
139 bool isNumber(std::string
const &str);
155 bool isValueLine(std::vector<std::string>
const &line);
Class the reads .lha file, parses them and create a LHAFileData containing all blocks with their elem...
Definition: lha.h:46
static bool isNumber(std::string const &str)
Tells if a string corresponds to a number, integer or floating point (standard or scientific notation...
Definition: lha.cpp:126
static bool verbose
Tells if warning messages must be printed during the read of .lha files.
Definition: lha.h:55
static bool isPositiveInteger(std::string const &str)
Tells if a string corresponds to a positive integer.
Definition: lha.cpp:112
static LHAElement readValue(std::vector< std::string > const &line)
Reads a line and returns the LHAElement corresponding to it.
Definition: lha.cpp:149
Corresponds to a line of a .lha file.
Definition: lhaData.h:70
static LHAFileData readFile(std::string const &fileName)
Reads a .lha file and returns its data.
Definition: lha.cpp:24
static std::string nextLine(std::ifstream &in)
Reads a line in in and removes comments (with '#').
Definition: lha.cpp:67
Namespace containing all lha utilities.
Definition: lha.h:37
static bool isValueLine(std::vector< std::string > const &line)
Tells if a line contains a value.
Definition: lha.cpp:140
static std::vector< std::string > split(std::string const &line)
Splits a string into pieces, separating by space and line break.
Definition: lha.cpp:82
static bool isBlockLine(std::vector< std::string > const &line)
Tells if a line (vector of string) is a block line.
Definition: lha.cpp:106
Final class containing all the data coming from a LHA file.
Definition: lhaData.h:302