void generate(const std::string& header, const std::string& footer, const openxc::message_set& message_set, std::ostream& out)\r
{\r
out << "#include \"application.hpp\"\n"\r
- << "#include \"../can/can-decoder.hpp\"\n\n";\r
+ << "#include \"../can/can-decoder.hpp\"\n"\r
+ << "#include \"../can/can-encoder.hpp\"\n\n";\r
\r
if (header.size()) out << header << "\n";\r
\r
std::string read_file(const std::string& file)\r
{\r
if(file.size() == 0) return std::string();\r
- \r
+\r
std::string content;\r
std::ifstream stream(file);\r
if (stream)\r
showhelpinfo(argv[0]);\r
exit(1);\r
}\r
- /*use function getopt to get the arguments with option."hu:p:s:v" indicate \r
+ /*use function getopt to get the arguments with option."hu:p:s:v" indicate\r
that option h,v are the options without arguments while u,p,s are the\r
options with arguments*/\r
while((tmp=(char)getopt(argc,argv,"m:h:f:o:"))!=-1)\r
throw std::runtime_error(ss.str());\r
}\r
}\r
- generate(header.str(), footer, message_set, output_file.size() ? out : std::cout); \r
+ generate(header.str(), footer, message_set, output_file.size() ? out : std::cout);\r
}\r
catch (std::exception& e)\r
{\r