Accumulate_File_Lines Struct Reference

This struct implements the bridge between the FileName::read_lines method and the lines_ data member of the Impl class. The lines_ data is a collection of pointers to std::string, not std::strings directly so this class performs the needed copies and dereferences to make the interface look right to FileName::read_lines. More...

Inheritance diagram for Accumulate_File_Lines:
Inheritance graph
[legend]
Collaboration diagram for Accumulate_File_Lines:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Accumulate_File_Lines (rep_type &lines)
std::string & back ()
 back() is called to get a reference to the last string in the container -- presumbaly one created using the above push_back method.
void push_back (std::string const &new_line)
 push_back is called to append a new std::string to the end of the container
void setBackHasCR (bool flag)
 read_lines() calls this function to indicate to the line accumulator that the most recently read line, if any had a CR character removed from it. This function will only be called if there is a trailing CR and if the removeCR flag is passed to read_lines().

Public Attributes

rep_typelines_

Detailed Description

This struct implements the bridge between the FileName::read_lines method and the lines_ data member of the Impl class. The lines_ data is a collection of pointers to std::string, not std::strings directly so this class performs the needed copies and dereferences to make the interface look right to FileName::read_lines.

Definition at line 1893 of file texteditor.cxx.


Constructor & Destructor Documentation

Accumulate_File_Lines ( rep_type lines  ) 

Definition at line 1906 of file texteditor.cxx.


Member Function Documentation

std::string& back (  )  [virtual]

back() is called to get a reference to the last string in the container -- presumbaly one created using the above push_back method.

Implements accumulate_lines.

Definition at line 1916 of file texteditor.cxx.

void push_back ( std::string const &  new_line  )  [virtual]

push_back is called to append a new std::string to the end of the container

Implements accumulate_lines.

Definition at line 1911 of file texteditor.cxx.

void setBackHasCR ( bool  flag  )  [virtual]

read_lines() calls this function to indicate to the line accumulator that the most recently read line, if any had a CR character removed from it. This function will only be called if there is a trailing CR and if the removeCR flag is passed to read_lines().

Reimplemented from accumulate_lines.

Definition at line 1921 of file texteditor.cxx.


Member Data Documentation

Definition at line 1904 of file texteditor.cxx.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:51:49 2012 for CXXUtilities by  doxygen 1.6.3