29 #include <boost/filesystem.hpp> 
   30 #include <boost/regex.hpp> 
   32 #include "core/common/WLogger.h" 
   34 #include "WFileParser.h" 
   37     m_fileName( fileName ),
 
   38     m_tagIndicator( 
"#" ),
 
   39     m_endIndicator( 
"end" ),
 
   50     using namespace boost::filesystem; 
 
   58     std::ifstream ifs( 
m_fileName.c_str(), std::ifstream::in );
 
   86     std::vector<std::string>returnVector;
 
  124     std::vector<std::vector<std::string > >returnVector;
 
  150             std::vector<std::string>svec;
 
  153             boost::sregex_token_iterator end;
 
  156                 svec.push_back( *it++ );
 
  159             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