Go to the documentation of this file.
26 #include <boost/format.hpp>
28 #include <SimoxUtility/algorithm/string/string_tools.h>
37 this->header = header;
42 this->header = header;
58 this->initList.push_back(
boost::str(boost::format(
"%s(%s)") %
target % expr));
96 writer->body.line(header);
106 for (
size_t i = 0; i < initList.size(); i++)
108 writer->body.line(
boost::str(boost::format(
"%s%s%s") % (i == 0 ?
": " :
" ") %
109 initList.at(i) % (i < initList.size() - 1 ?
"," :
"")),
113 auto writeBlock = [
this, writer]()
117 block->writeCpp(writer);
139 this->enforceBlockGeneration = enforceBlockGeneration;
list(APPEND SOURCES ${QT_RESOURCES}) set(COMPONENT_LIBS ArmarXGui ArmarXCoreObservers ArmarXCoreEigen3Variants PlotterController $
Vertex target(const detail::edge_base< Directed, Vertex > &e, const PCG &)
std::shared_ptr< CppBlock > CppBlockPtr
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
void addInitListEntries(const std::vector< std::pair< std::string, std::string >> &)
void writeCpp(const CppWriterPtr &writer)
CppCtor(const std::string &header)
void addLine(const std::string &line)
void setBlock(const CppBlockPtr &)
bool ends_with(const std::string &haystack, const std::string &needle)
void setEnforceBlockGeneration(bool enforceBlockGeneration)
std::shared_ptr< CppWriter > CppWriterPtr
void addInitListEntry(const std::string &target, const std::string &expr)
CppBlockPtr getBlock() const
This file offers overloads of toIce() and fromIce() functions for STL container types.