Index: lib/MsgUtils/scripts/MsgCpp.py =================================================================== diff -u -rcfc0df719cb5033078d0cac45ce0f6243810f2e7 -rfa691c15183dfe8596de699ef8c3a7fcdb90edab --- lib/MsgUtils/scripts/MsgCpp.py (.../MsgCpp.py) (revision cfc0df719cb5033078d0cac45ce0f6243810f2e7) +++ lib/MsgUtils/scripts/MsgCpp.py (.../MsgCpp.py) (revision fa691c15183dfe8596de699ef8c3a7fcdb90edab) @@ -17,12 +17,24 @@ # \param[in] clear If true, clear out any already loaded data before processing new data, # otherwise new data will be added to the existing data # \return none - def load(self, filename, clear=True): - super().load(filename, clear) + def loadCSV(self, filename, clear=True): + super().loadCSV(filename, clear) for (msg_id_value, msg) in self.data.items(): msg['cpp_struct'] = self.__struct_data(msg) + # \brief Load a .conf file (Unhandled.conf format) and cache the data. + # \note This will clear any previously cached data. + # \param[in] filename Filename of the .conf to load. + # \param[in] clear If true, clear out any already loaded data before processing new data, + # otherwise new data will be added to the existing data + # \return none + def loadConf(self, filename, clear=True): + super().loadConf(filename, clear) + for (msg_id_value, msg) in self.data.items(): + msg['cpp_struct'] = self.__struct_data(msg) + + # \brief Write the loaded MsgData to a C++ header file # \param[in] device_name name of the device used to name the output message definitions header file # \param[in] output_dir directory where the output header file will be written