13#ifndef COMMENTEDTEXTPARSER_HPP_
14#define COMMENTEDTEXTPARSER_HPP_
47 openFile( std::string
const& fileName );
60 std::string& stringForComment );
166 <<
"BOL::error! CommentedTextParser tried to open "
167 << fileName <<
" but could not (or " << fileName <<
" is empty)!";
168 std::cout << std::endl;
195 std::string& stringForComment )
209 &stringForComment ) );
226 std::string& stringToFill )
235 stringToFill.clear();
236 while( stringToFill.empty()
253 return !(stringToFill.empty());
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;
static std::string trimFromBack(std::string const &stringToTrim, std::string const &charsToTrim)
static std::string const newlineChars
static std::string trimFromFrontAndBack(std::string const &stringToTrim, std::string const &charsToTrim=whitespaceAndNewlineChars)
static std::string substringToFirst(std::string const &stringToParse, VectorlikeArray< std::string > const &delimitersOfSubstring, std::string *const remainderString=NULL)
static void parseByChar(std::string const &stringToParse, VectorlikeArray< std::string > &destinationArray, std::string const &divisionCharSet=whitespaceChars)