std::vector< String >::reverse_iterator ReverseIterator
Mutable reverse iterator.
Definition TextFile.h:32
std::vector< String >::const_iterator ConstIterator
Non-mutable iterator.
Definition TextFile.h:30
void addLine(const StringType &line)
Definition TextFile.h:91
void store(const String &filename)
Writes the data to a file.
ConstIterator end() const
Gives access to the underlying text buffer.
TextFile(const String &filename, bool trim_lines=false, Int first_n=-1, bool skip_empty_lines=false, const String &comment_symbol="")
Constructor with filename.
std::vector< String >::const_reverse_iterator ConstReverseIterator
Non-mutable reverse iterator.
Definition TextFile.h:34
void load(const String &filename, bool trim_lines=false, Int first_n=-1, bool skip_empty_lines=false, const String &comment_symbol="")
Loads data from a text file into the internal buffer.
TextFile & operator<<(const StringType &string)
Operator for appending entries with less code.
Definition TextFile.h:84
std::vector< String >::iterator Iterator
Mutable iterator.
Definition TextFile.h:28
static std::istream & getLine(std::istream &is, std::string &t)
Platform-agnostic getline() which can deal with all line endings (\r, \r\n, \n)
ConstIterator begin() const
Gives access to the underlying text buffer.
std::vector< String > buffer_
Internal buffer storing the lines before writing them to the file.
Definition TextFile.h:119