diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-04-09 09:02:52 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-04-17 11:42:07 +0200 |
commit | 29de76e9beac2a8e7ffcd1ccba07a927df1f2bcc (patch) | |
tree | 7e4c60d31d0283a0e67dba8b9ae11e35e9e52c02 /examples | |
parent | ddd4374f35df2d8b8e9b4ecf4890abba6fab3734 (diff) |
Add saving of diagnostic messages information
Add saving of diagnostic messages receive state, last value,
and timestamp associated to it.
Add methods to get/set these information.
Add initialisation for added atributes.
Add boolean to set receive state at initialisation.
Generate all 'diagnostic-message.cpp' containing diagnostic messages
to add receive state initialisation.
Bug-AGL: SPEC-1347
Change-Id: Iee82ca3b5f79fd267717ae074d5456b8cbc1c377
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/OBD2/application-generated.cpp | 63 | ||||
-rw-r--r-- | examples/agl-vcar/application-generated.cpp | 63 | ||||
-rw-r--r-- | examples/basic/application-generated.cpp | 9 | ||||
-rw-r--r-- | examples/toyota/auris/application-generated.cpp | 63 |
4 files changed, 132 insertions, 66 deletions
diff --git a/examples/OBD2/application-generated.cpp b/examples/OBD2/application-generated.cpp index f66748b6..4fef6315 100644 --- a/examples/OBD2/application-generated.cpp +++ b/examples/OBD2/application-generated.cpp @@ -18,7 +18,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 5, @@ -29,7 +30,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 10, @@ -40,7 +42,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 11, @@ -51,7 +54,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 12, @@ -62,7 +66,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 13, @@ -73,7 +78,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 15, @@ -84,7 +90,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 16, @@ -95,7 +102,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 17, @@ -106,7 +114,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 31, @@ -117,7 +126,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 45, @@ -128,7 +138,8 @@ application_t::application_t() 0.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 47, @@ -139,7 +150,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 51, @@ -150,7 +162,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 70, @@ -161,7 +174,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 76, @@ -172,7 +186,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 82, @@ -183,7 +198,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 90, @@ -194,7 +210,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 91, @@ -205,7 +222,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 92, @@ -216,7 +234,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 94, @@ -227,7 +246,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 99, @@ -238,7 +258,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} } // end diagnostic_messages_ vector diff --git a/examples/agl-vcar/application-generated.cpp b/examples/agl-vcar/application-generated.cpp index 876b95b9..9ec8fb33 100644 --- a/examples/agl-vcar/application-generated.cpp +++ b/examples/agl-vcar/application-generated.cpp @@ -384,7 +384,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 5, @@ -395,7 +396,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 10, @@ -406,7 +408,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 11, @@ -417,7 +420,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 12, @@ -428,7 +432,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 13, @@ -439,7 +444,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 15, @@ -450,7 +456,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 16, @@ -461,7 +468,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 17, @@ -472,7 +480,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 31, @@ -483,7 +492,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 45, @@ -494,7 +504,8 @@ application_t::application_t() 0.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 47, @@ -505,7 +516,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 51, @@ -516,7 +528,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 70, @@ -527,7 +540,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 76, @@ -538,7 +552,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 82, @@ -549,7 +564,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 90, @@ -560,7 +576,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 91, @@ -571,7 +588,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 92, @@ -582,7 +600,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 94, @@ -593,7 +612,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 99, @@ -604,7 +624,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} } // end diagnostic_messages_ vector diff --git a/examples/basic/application-generated.cpp b/examples/basic/application-generated.cpp index 88ee94b9..1cdf67c3 100644 --- a/examples/basic/application-generated.cpp +++ b/examples/basic/application-generated.cpp @@ -145,7 +145,8 @@ application_t::application_t() 1.00000f, handleObd2Pid, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 12, @@ -156,7 +157,8 @@ application_t::application_t() 1.00000f, nullptr, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 6, @@ -167,7 +169,8 @@ application_t::application_t() 1.00000f, handleMyDiagRequest, nullptr, - true + true, + false })} } // end diagnostic_messages_ vector diff --git a/examples/toyota/auris/application-generated.cpp b/examples/toyota/auris/application-generated.cpp index 60a21f51..3421969d 100644 --- a/examples/toyota/auris/application-generated.cpp +++ b/examples/toyota/auris/application-generated.cpp @@ -308,7 +308,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 5, @@ -319,7 +320,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 10, @@ -330,7 +332,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 11, @@ -341,7 +344,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 12, @@ -352,7 +356,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 13, @@ -363,7 +368,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 15, @@ -374,7 +380,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 16, @@ -385,7 +392,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 17, @@ -396,7 +404,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 31, @@ -407,7 +416,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 45, @@ -418,7 +428,8 @@ application_t::application_t() 0.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 47, @@ -429,7 +440,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 51, @@ -440,7 +452,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 70, @@ -451,7 +464,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 76, @@ -462,7 +476,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 82, @@ -473,7 +488,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 90, @@ -484,7 +500,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 91, @@ -495,7 +512,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 92, @@ -506,7 +524,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 94, @@ -517,7 +536,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared<diagnostic_message_t>(diagnostic_message_t{ 99, @@ -528,7 +548,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} } // end diagnostic_messages_ vector |