27 #include <SimoxUtility/algorithm/vector.hpp>
28 #include <SimoxUtility/meta/type_name.h>
34 {
"armarx::arondto::DateTime",
35 {
"armarx::arondto::DateTime",
36 "armarx::arondto::DateTime",
37 "armarx::core::time::DateTime",
38 "armarx::core::time::DateTime",
39 {
"<RobotAPI/libraries/aron/common/rw/time.h>"},
41 {
"armarx::arondto::Duration",
42 {
"armarx::arondto::Duration",
43 "armarx::arondto::Duration",
44 "armarx::core::time::Duration",
45 "armarx::core::time::Duration",
46 {
"<RobotAPI/libraries/aron/common/rw/time.h>"},
47 {
"armarx::arondto::Frequency",
"armarx::arondto::DateTime"}}}
65 bool b = std::find(x.disallowedBases.begin(),
66 x.disallowedBases.end(),
80 return x.replacedInstantiatedTypename;
92 return x.replacedTypename;
97 std::vector<std::string>
104 return x.additionalIncludes;
115 simox::meta::get_type_name<type::dto::AronObject>(),
121 std::vector<std::string>
124 std::vector<std::string>
ret;
131 ret = simox::alg::appended(
ret, child_s->getRequiredIncludes());
142 const std::string& cppAccessor,
144 std::string& variantAccessor)
const
150 std::vector<std::string> templatesQuoted;
153 templatesQuoted.push_back(
"\"" + t +
"\"");
156 b->addLine(
"auto " + variantAccessor +
" = " +
161 simox::alg::join(p.
getPath(),
", ") +
"})); // of " + cppAccessor);
168 std::string& variantAccessor)
const
170 CppBlockPtr block_if_data = std::make_shared<CppBlock>();
176 resolved_accessor +
", " + variantAccessor +
", " +
178 simox::alg::join(p.
getPath(),
", ") +
"})); // of " + cppAccessor);
186 CppBlockPtr block_if_data = std::make_shared<CppBlock>();
192 block_if_data->addLine(reset);
196 variantAccessor +
", " + resolved_accessor +
"); // of " +
205 if (has_been_replaced)
210 CppBlockPtr block_if_data = std::make_shared<CppBlock>();
211 block_if_data->addLine(cppAccessor +
nextEl() +
"resetHard();");
218 if (has_been_replaced)
223 auto block_if_data = std::make_shared<CppBlock>();
224 block_if_data->addLine(cppAccessor +
nextEl() +
"resetSoft();");