Go to the documentation of this file.
26 #include <SimoxUtility/algorithm/string/string_tools.h>
29 #include <boost/format.hpp>
35 this->header = header;
40 this->header = header;
54 this->initList.push_back(
boost::str(boost::format(
"%s(%s)") %
target % expr));
87 writer->body.line(header);
97 for (
size_t i = 0; i < initList.size(); i++)
99 writer->body.line(
boost::str(boost::format(
"%s%s%s") % (i == 0 ?
": " :
" ") % initList.at(i) % (i < initList.size() - 1 ?
"," :
"")), 1);
102 auto writeBlock = [
this, writer](){
105 block->writeCpp(writer);
126 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.