53 #include "WFileParser.h"
57 m_fileName( fileName ),
58 m_tagIndicator(
"#" ),
59 m_endIndicator(
"end" ),
70 using namespace boost::filesystem;
78 std::ifstream ifs(
m_fileName.c_str(), std::ifstream::in );
106 std::vector<std::string>returnVector;
144 std::vector<std::vector<std::string > >returnVector;
171 std::vector<std::string>svec;
174 boost::sregex_token_iterator end;
177 svec.push_back( *it++ );
180 returnVector.push_back( svec );
std::string m_fileName
the file name of the file to parse
std::vector< std::string > m_rawLines
vector of every line in the file
std::vector< std::vector< std::string > > getLinesForTagSeparated(std::string tag)
getter
WFileParser(const std::string fileName)
constructor
std::string m_delimiter
delimiter for entries in a line
bool readFile()
helper function to read a text file
std::vector< std::string > getLinesForTag(std::string tag)
getter
std::string m_endIndicator
string marking the end of a tagged area
std::string m_tagIndicator
string marking a line as tag