Static Public Member Functions | List of all members
sick_scan::PcapngJsonParser Class Reference

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...
 

Detailed Description

class PcapngJsonParser parses jsonfiles converted from pcapng-files by pcap_json_converter.

Definition at line 82 of file pcapng_json_parser.h.

Member Function Documentation

◆ parseJsonfile()

bool sick_scan::PcapngJsonParser::parseJsonfile ( const std::string &  json_filename,
const std::vector< std::string > &  scandatatypes,
double  start_time,
std::vector< sick_scan::JsonScanData > &  scandata 
)
static

Parses a jsonfile and returns a list of binary scandata messages of given type.

Parameters
[in]json_filenamejsonfile incl. path, f.e. "tim781s_scandata.pcapng.json @param [in] scandatatypes list of scandata message types, f.e. "sSN LMDscandata,sSN LMDscandatamon"
[in]start_timeoffset for the relativ time stamps
[out]scandatalist of binary scandata messages incl. timestamp
Returns
true on sucess, false on error
Parameters
[in]json_filenamejsonfile incl. path, f.e. "tim781s_scandata.pcapng.json @param [in] scandatatypes list of scandata message types, f.e. "sSN LMDscandata,sSN LMDscandatamon"
[in]start_timeoffset for the relativ time stamps
[out]scandatalist of binary scandata messages
Returns
true on sucess, false on error

Definition at line 87 of file pcapng_json_parser.cpp.

◆ split()

std::vector< std::string > sick_scan::PcapngJsonParser::split ( const std::string &  s,
char  delimiter 
)
static

Splits a comma separated string into its parts.

Parameters
[in]scomma separated string
Returns
list of substrings

Definition at line 69 of file pcapng_json_parser.cpp.


The documentation for this class was generated from the following files:


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Thu Sep 8 2022 02:30:19