|
MicroModelicaCCompiler
4.5.3
|
#include <writer.hpp>


Public Member Functions | |
| MemoryWriter () | |
| ~MemoryWriter () | |
| void | setFile (std::string fname) |
| void | clearFile () |
| void | write (std::string str, WRITER::Section section, WRITER::Insert it=WRITER::Prepend) |
| void | write (std::stringstream &s, WRITER::Section section, bool clean=true, WRITER::Insert it=WRITER::Prepend) |
| void | removeFromSection (std::string str, WRITER::Section section) |
| void | writeBlock (std::list< std::string > block, WRITER::Section section) |
| void | print (WRITER::Section section) |
| void | print (std::stringstream &s) |
| void | print (std::string s) |
| bool | isEmpty (WRITER::Section section) |
| void | printBlock (std::list< std::string > block) |
| void | setIndent (int n) |
| std::string | indent () |
| std::string | indent (int n) |
| void | beginBlock () |
| void | beginBlock (WRITER::Section s) |
| void | endBlock () |
| void | endBlock (WRITER::Section s) |
| std::string | block () |
| void | newLine (WRITER::Section section) |
| void | clear (WRITER::Section section) |
| void | write (Util::SymbolTable symbols, WRITER::Section s) |
Public Member Functions inherited from MicroModelica::Generator::Writer | |
| virtual | ~Writer () |
| template<class W > | |
| void | write (W out, WRITER::Section section, bool clean=true, WRITER::Insert it=WRITER::Prepend) |
Private Attributes | |
| std::list< std::string > | _sections [SECTIONS] |
| std::ofstream | _file |
| std::string | _indentStr |
| std::string | _block |
| int | _indent |
| int | _blockIndent |
| std::list< std::string >::iterator | _removeIt |
Definition at line 148 of file writer.hpp.
| MicroModelica::Generator::MemoryWriter::MemoryWriter | ( | ) |
Definition at line 50 of file writer.cpp.
References MicroModelica::Util::Utils::instance(), and MicroModelica::Util::Utils::trimString().
Referenced by MicroModelica::Generator::Writer::~Writer().

| MicroModelica::Generator::MemoryWriter::~MemoryWriter | ( | ) |
Definition at line 90 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 182 of file writer.cpp.
References _block, _blockIndent, _file, and indent().

|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 188 of file writer.cpp.
References _block.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 206 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 86 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 88 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 200 of file writer.cpp.
References SECTIONS.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 194 of file writer.cpp.
References write().

|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 171 of file writer.cpp.
Referenced by beginBlock().
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 173 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 151 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 92 of file writer.cpp.
References _removeIt, _sections, MicroModelica::Generator::WRITER::Append_Simple, and MicroModelica::Generator::WRITER::Prepend.
|
virtual |
Implements MicroModelica::Generator::Writer.
|
virtual |
Implements MicroModelica::Generator::Writer.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 131 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 153 of file writer.cpp.
References _indentStr.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 65 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 57 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 161 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Referenced by endBlock().
|
virtual |
Implements MicroModelica::Generator::Writer.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 208 of file writer.cpp.
|
virtual |
Implements MicroModelica::Generator::Writer.
Definition at line 123 of file writer.cpp.
|
private |
Definition at line 179 of file writer.hpp.
Referenced by beginBlock(), and print().
|
private |
Definition at line 181 of file writer.hpp.
Referenced by beginBlock().
|
private |
Definition at line 177 of file writer.hpp.
Referenced by beginBlock(), and print().
|
private |
Definition at line 180 of file writer.hpp.
|
private |
Definition at line 178 of file writer.hpp.
Referenced by printBlock().
|
private |
Definition at line 182 of file writer.hpp.
Referenced by newLine().
|
private |
Definition at line 176 of file writer.hpp.
Referenced by newLine().