#include <CommentedTextParser.hpp>
Definition at line 27 of file CommentedTextParser.hpp.
◆ CommentedTextParser() [1/2]
BOL::CommentedTextParser::CommentedTextParser |
( |
std::string const & |
commentMarker, |
|
|
bool const |
isVerbose |
|
) |
| |
◆ CommentedTextParser() [2/2]
BOL::CommentedTextParser::CommentedTextParser |
( |
VectorlikeArray< std::string > const & |
commentMarkerSet, |
|
|
bool const |
isVerbose |
|
) |
| |
◆ ~CommentedTextParser()
BOL::CommentedTextParser::~CommentedTextParser |
( |
| ) |
|
|
virtual |
◆ atEndOfFile()
bool BOL::CommentedTextParser::atEndOfFile |
( |
| ) |
|
|
inline |
◆ closeFile()
◆ openFile()
bool BOL::CommentedTextParser::openFile |
( |
std::string const & |
fileName | ) |
|
|
inline |
Definition at line 146 of file CommentedTextParser.hpp.
166 <<
"BOL::error! CommentedTextParser tried to open "
167 << fileName <<
" but could not (or " << fileName <<
" is empty)!";
168 std::cout << std::endl;
◆ parseNextLineOfFile()
bool BOL::CommentedTextParser::parseNextLineOfFile |
( |
std::string & |
stringForData, |
|
|
std::string & |
stringForComment |
|
) |
| |
|
inline |
Definition at line 194 of file CommentedTextParser.hpp.
209 &stringForComment ) );
static std::string trimFromBack(std::string const &stringToTrim, std::string const &charsToTrim)
static std::string const newlineChars
static std::string substringToFirst(std::string const &stringToParse, VectorlikeArray< std::string > const &delimitersOfSubstring, std::string *const remainderString=NULL)
◆ parseString()
VectorlikeArray< std::pair< std::string, std::string > > const & BOL::CommentedTextParser::parseString |
( |
std::string const & |
textToParse | ) |
|
|
inline |
Definition at line 115 of file CommentedTextParser.hpp.
static void parseByChar(std::string const &stringToParse, VectorlikeArray< std::string > &destinationArray, std::string const &divisionCharSet=whitespaceChars)
◆ readInNextLine()
bool BOL::CommentedTextParser::readInNextLine |
( |
| ) |
|
|
inlineprotected |
◆ readJustNextValidLine()
bool BOL::CommentedTextParser::readJustNextValidLine |
( |
std::string & |
stringToFill | ) |
|
|
inline |
◆ readNextNonEmptyLineOfFileWithoutComment()
bool BOL::CommentedTextParser::readNextNonEmptyLineOfFileWithoutComment |
( |
std::string & |
stringToFill | ) |
|
|
inline |
Definition at line 225 of file CommentedTextParser.hpp.
235 stringToFill.clear();
236 while( stringToFill.empty()
253 return !(stringToFill.empty());
static std::string trimFromFrontAndBack(std::string const &stringToTrim, std::string const &charsToTrim=whitespaceAndNewlineChars)
◆ reportStateOfFile()
void BOL::CommentedTextParser::reportStateOfFile |
( |
| ) |
|
|
inlineprotected |
Definition at line 285 of file CommentedTextParser.hpp.
294 <<
"BOL::CommentedTextParser reached the end of the file.";
295 std::cout << std::endl;
301 <<
"BOL::CommentedTextParser cannot read in any more of the file after"
302 <<
" a bad reading operation.";
303 std::cout << std::endl;
◆ commentMarkerSet
◆ inputFile
std::ifstream BOL::CommentedTextParser::inputFile |
|
protected |
◆ isVerbose
bool const BOL::CommentedTextParser::isVerbose |
|
protected |
◆ lineBeingRead
std::string BOL::CommentedTextParser::lineBeingRead |
|
protected |
◆ linesOfFileRemain
bool BOL::CommentedTextParser::linesOfFileRemain |
|
protected |
◆ parsedLine
std::pair< std::string, std::string > BOL::CommentedTextParser::parsedLine |
|
protected |
◆ parsedText
VectorlikeArray< std::pair< std::string, std::string > > BOL::CommentedTextParser::parsedText |
|
protected |
◆ textAsLines
◆ trimmingChars
std::string const BOL::CommentedTextParser::trimmingChars |
|
staticprotected |
The documentation for this class was generated from the following files: