- o << v.line_prefix_ << "{std::make_shared<can_signal_t> (can_signal_t{\n"\r
- << v.line_prefix_ << "\t" << gen(v.v_.generic_name()) << ",\n"\r
- << v.line_prefix_ << "\t" << v.v_.bit_position() << ",\n"\r
- << v.line_prefix_ << "\t" << v.v_.bit_size() << ",\n"\r
- << v.line_prefix_ << "\t" << gen(v.v_.factor()) << ",\n"\r
- << v.line_prefix_ << "\t" << v.v_.offset() << ",\n"\r
- << v.line_prefix_ << "\t" << "0,\n"\r
- << v.line_prefix_ << "\t" << "0,\n"\r
- << v.line_prefix_ << "\tfrequency_clock_t(" << gen(v.v_.max_frequency()) << "),\n"\r
- << v.line_prefix_ << "\t" << gen(v.v_.send_same()) << ",\n"\r
- << v.line_prefix_ << "\t" << gen(v.v_.force_send_changed()) << ",\n"\r
- << gen(v.v_.states(), v.line_prefix_ + '\t') << ",\n"\r
- << v.line_prefix_ << '\t' << gen(v.v_.writable()) << ",\n"\r
- << v.line_prefix_ << '\t' << (v.v_.decoder().size() ? v.v_.decoder() : v.v_.states().size() ? "decoder_t::decode_state" : "nullptr") << ",\n"\r
- << v.line_prefix_ << '\t' << (v.v_.encoder().size() ? v.v_.encoder() : "nullptr") << ",\n"\r
- << v.line_prefix_ << '\t' << "false\n"\r
+ o << v.line_prefix_ << "{std::make_shared<signal_t> (signal_t{\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.generic_name()) << ",// generic_name\n"\r
+ << v.line_prefix_ << "\t" << v.v_.bit_position() << ",// bit_position\n"\r
+ << v.line_prefix_ << "\t" << v.v_.bit_size() << ",// bit_size\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.factor()) << ",// factor\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.offset()) << ",// offset\n"\r
+ << v.line_prefix_ << "\t" << "0,// min_value\n"\r
+ << v.line_prefix_ << "\t" << "0,// max_value\n"\r
+ << v.line_prefix_ << "\tfrequency_clock_t(" << gen(v.v_.max_frequency()) << "),// frequency\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.send_same()) << ",// send_same\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.force_send_changed()) << ",// force_send_changed\n"\r
+ << gen(v.v_.states(), v.line_prefix_ + '\t') << ",// states\n"\r
+ << v.line_prefix_ << '\t' << gen(v.v_.writable()) << ",// writable\n"\r
+ << v.line_prefix_ << '\t' << decoder_t::add_decoder(v.v_.decoder().size() ? v.v_.decoder() : v.v_.states().size() ? "decoder_t::decode_state" : "nullptr"\r
+ , VERSION_FILE\r
+ , VERSION_LOW_CAN) << ",// decoder\n"\r
+ << v.line_prefix_ << '\t' << (v.v_.encoder().size() ? v.v_.encoder() : "nullptr") << ",// encoder\n"\r
+ << v.line_prefix_ << '\t' << "false,// received\n";\r
+ std::string multi_first = "";\r
+ if(v.v_.multiplex().first){\r
+ multi_first = "true";\r
+ }else{\r
+ multi_first = "false";\r
+ }\r
+ std::string multi = "std::make_pair<bool, int>(" + multi_first + ", " + std::to_string(v.v_.multiplex().second) + ")";\r
+ o << v.line_prefix_ << '\t' << multi << ",// multiplex\n"\r
+ << v.line_prefix_ << "\tstatic_cast<sign_t>(" << gen(v.v_.sign()) << "),// signed\n"\r
+ << v.line_prefix_ << '\t' << gen(v.v_.bit_sign_position()) << ",// bit_sign_position\n"\r
+ << v.line_prefix_ << "\t" << gen(v.v_.unit()) << "// unit\n"\r