#include <Chunk.hpp>
Public Member Functions | |
Chunk () | |
void | readFromConsole () |
void | streamline () |
void | writeToConsole () |
Private Attributes | |
vector< string > | _chunk |
This class streamlines doxygen documentation blocks in a chunk of source code. The read/write methods are separated from the actual streamlining because future versions of this class may be extended with other input/output mechanisms in addition to stdin/stdout.
Chunk::Chunk | ( | ) |
Constructs a streamliner with an empty source code chunk.
void Chunk::readFromConsole | ( | ) |
Reads lines from stdin until EOF is reached, adding them to the current source code chunk.
void Chunk::streamline | ( | ) |
Streamlines the current source code chunk, adjusting its contents as needed.
void Chunk::writeToConsole | ( | ) |
Writes the current source code chunk to stdout.
|
private |
The current source code chunk.