42 const std::string& str);
57 const std::string& name,
62 const std::string& name,
63 const std::vector<T>& values);
67 const std::string& name,
72 const std::string& prefix);
88 for (
size_t i = 0; i <
ws_; ++i) {
95 this->
out_ << std::endl;
104 this->
out_ <<
";" << std::endl;
117 const std::string& name,
121 out_ <<
"." << name <<
"(" << (value ?
"true" :
"false") <<
")";
125 template <
typename T>
127 const std::string& name,
131 out_ <<
"." << name <<
"(" << value <<
")";
135 template <
typename T>
137 const std::string& name,
138 const std::vector<T>& values) {
141 out_ <<
"." << name <<
"(";
142 if (values.size() > 0) {
145 for (
size_t i = 1, e = values.size(); i < e; ++i) {
146 out_ <<
", " << values[i];
size_t ws_
Definition: mapping_options_cpp_printer.h:75
size_t indent
Definition: mapping_options_cpp_printer.h:32
MappingOptionsCppPrinter & printBooleanOption(const std::string &name, bool value)
Definition: mapping_options_cpp_printer.h:116
MappingOptionsCppPrinter & endStmt()
Definition: mapping_options_cpp_printer.h:103
MappingOptionsCppPrinter & printString(const std::string str)
Definition: mapping_options_cpp_printer.h:53
friend MappingOptionsCppPrinter & operator<<(MappingOptionsCppPrinter &prn, const std::string &str)
MappingOptionsCppPrinter & printListOption(const std::string &name, const std::vector< T > &values)
Definition: mapping_options_cpp_printer.h:136
MappingOptionsCppPrinter(std::ostream &out, size_t ws=0)
Definition: mapping_options_cpp_printer.h:37
MappingOptionsAsCpp(const MappingOptions &options_, size_t indent_=0)
Definition: mapping_options_cpp_printer.h:27
std::ostream & out_
Definition: mapping_options_cpp_printer.h:74
Definition: mapping_options_cpp_printer.h:35
MappingOptionsCppPrinter & printSchedulerOptions(const SchedulerOptionsView &schedulerOptions, const std::string &prefix)
std::ostream & operator<<(std::ostream &out, const MappingOptionsAsCpp &mo)
Definition: mapping_options_cpp_printer.h:79
MappingOptionsCppPrinter & tab()
Definition: mapping_options_cpp_printer.h:87
Definition: mapping_options.h:336
MappingOptionsCppPrinter & endl()
Definition: mapping_options_cpp_printer.h:94
bool lineContinuation_
Definition: mapping_options_cpp_printer.h:76
const MappingOptions & options
Definition: mapping_options_cpp_printer.h:31
MappingOptionsCppPrinter & printValueOption(const std::string &name, const T &value)
Definition: mapping_options_cpp_printer.h:126
Definition: mapping_options.h:278
Definition: mapping_options_cpp_printer.h:25
MappingOptionsCppPrinter & printString(const char *str)
Definition: mapping_options_cpp_printer.h:110