Go to the documentation of this file.
26 #include <boost/format.hpp>
48 writer->body.line(line);
53 nestedBlock->writeCpp(writer);
58 writer->body.startBlock();
59 for (
const auto& entry :
entries)
61 entry->writeCpp(writer);
63 writer->body.endBlock();
73 return nestedBlock->getAsSingleLine();
81 for (
const auto& entry :
entries)
83 ss << entry->getAsSingleLine() <<
" ";
119 for (
const auto& line : lines)
129 for (
const auto& line : lines)
144 for (
const auto& entry : block->entries)
165 for (
const auto& entry : block1->entries)
167 ret->addEntry(entry);
170 for (
const auto& entry : block2->entries)
172 ret->addEntry(entry);
ReaderT::InputType T & ret
std::shared_ptr< CppBlock > CppBlockPtr
std::shared_ptr< CppBlockEntry > CppBlockEntryPtr
std::string getAsSingleLine()
static CppBlockPtr MergeBlocks(const CppBlockPtr &block1, const CppBlockPtr &block2)
void addEntry(const CppBlockEntryPtr &entry)
void addBlock(const CppBlockPtr &block)
virtual std::string getAsSingleLine() override
std::vector< CppBlockEntryPtr > entries
void addCommentLine(const std::string &line)
void addLine(const std::string &line)
virtual std::string getAsSingleLine() override
CppBlockStringEntry(const std::string &)
void appendBlock(const CppBlockPtr &block)
CppBlockBlockEntry(const CppBlockPtr &)
void writeCpp(const CppWriterPtr &writer)
void addLineAsBlock(const std::string &line)
virtual void writeCpp(const CppWriterPtr &writer) override
virtual void writeCpp(const CppWriterPtr &writer) override
void addCommentLines(const std::vector< std::string > &lines)
std::shared_ptr< CppWriter > CppWriterPtr
double s(double t, double s0, double v0, double a0, double j)
This file offers overloads of toIce() and fromIce() functions for STL container types.