class PcapngJsonParser parses jsonfiles converted from pcapng-files by pcap_json_converter. More...
#include <pcapng_json_parser.h>
Static Public Member Functions | |
static bool | parseJsonfile (const std::string &json_filename, const std::vector< std::string > &scandatatypes, double start_time, std::vector< sick_scan::JsonScanData > &scandata) |
Parses a jsonfile and returns a list of binary scandata messages of given type. More... | |
static std::vector< std::string > | split (const std::string &s, char delimiter) |
Splits a comma separated string into its parts. More... | |
class PcapngJsonParser parses jsonfiles converted from pcapng-files by pcap_json_converter.
Definition at line 82 of file pcapng_json_parser.h.
|
static |
Parses a jsonfile and returns a list of binary scandata messages of given type.
[in] | json_filename | jsonfile incl. path, f.e. "tim781s_scandata.pcapng.json @param [in] scandatatypes list of scandata message types, f.e. "sSN LMDscandata,sSN LMDscandatamon" |
[in] | start_time | offset for the relativ time stamps |
[out] | scandata | list of binary scandata messages incl. timestamp |
[in] | json_filename | jsonfile incl. path, f.e. "tim781s_scandata.pcapng.json @param [in] scandatatypes list of scandata message types, f.e. "sSN LMDscandata,sSN LMDscandatamon" |
[in] | start_time | offset for the relativ time stamps |
[out] | scandata | list of binary scandata messages |
Definition at line 87 of file pcapng_json_parser.cpp.
|
static |
Splits a comma separated string into its parts.
[in] | s | comma separated string |
Definition at line 69 of file pcapng_json_parser.cpp.