libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <json.h>
Public Member Functions | |
bool | fromJson (const std::string &json) |
mng_vals_e | managementId () const |
const BaseMngTlv * | dataField () const |
actionField_e | actionField () const |
bool | isUnicast () const |
bool | haveIsUnicast () const |
uint8_t | PTPProfileSpecific () const |
bool | havePTPProfileSpecific () const |
uint8_t | domainNumber () const |
bool | haveDomainNumber () const |
uint8_t | versionPTP () const |
bool | haveVersionPTP () const |
uint8_t | minorVersionPTP () const |
bool | haveMinorVersionPTP () const |
uint16_t | sequenceId () const |
bool | haveSequenceId () const |
uint32_t | sdoId () const |
bool | haveSdoId () const |
const PortIdentity_t & | srcPort () const |
bool | haveSrcPort () const |
const PortIdentity_t & | dstPort () const |
bool | haveDstPort () const |
bool | setAction (Message &message) const |
Parse JSON to PTP management message Class provide converting function and store the result of the parsing.
|
inline |
Get action field
|
inline |
Get dataField
|
inline |
Get domain number
|
inline |
Get target port ID
bool Json2msg::fromJson | ( | const std::string & | json | ) |
Convert JSON string to message
[in] | json | string |
|
inline |
Is domain number in JSON?
|
inline |
Is target port ID in JSON?
|
inline |
Is Unicast flag in JSON?
|
inline |
Is PTP minor version in JSON?
|
inline |
Is PTP profile specific in JSON?
|
inline |
Is sdoId in JSON?
|
inline |
Is sequence ID in JSON?
|
inline |
Is source port ID in JSON?
|
inline |
Is PTP major version in JSON?
|
inline |
Get Unicast flag
|
inline |
Get management ID
|
inline |
Get PTP minor version
|
inline |
Get PTP profile specific
|
inline |
Get sdoId
|
inline |
Get sequence ID
|
inline |
Call message setAction with parsed JSON
|
inline |
Get source port ID
|
inline |
Get PTP major version