|
libptpmgmt 2.0
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.
| actionField_e Json2msg::actionField | ( | ) | const |
Get action field
| const BaseMngTlv * Json2msg::dataField | ( | ) | const |
Get dataField
| uint8_t Json2msg::domainNumber | ( | ) | const |
Get domain number
| const PortIdentity_t & Json2msg::dstPort | ( | ) | const |
Get target port ID
| bool Json2msg::fromJson | ( | const std::string & | json | ) |
Convert JSON string to message
| [in] | json | string |
| bool Json2msg::haveDomainNumber | ( | ) | const |
Is domain number in JSON?
| bool Json2msg::haveDstPort | ( | ) | const |
Is target port ID in JSON?
| bool Json2msg::haveIsUnicast | ( | ) | const |
Is Unicast flag in JSON?
| bool Json2msg::haveMinorVersionPTP | ( | ) | const |
Is PTP minor version in JSON?
| bool Json2msg::havePTPProfileSpecific | ( | ) | const |
Is PTP profile specific in JSON?
| bool Json2msg::haveSdoId | ( | ) | const |
Is sdoId in JSON?
| bool Json2msg::haveSequenceId | ( | ) | const |
Is sequence ID in JSON?
| bool Json2msg::haveSrcPort | ( | ) | const |
Is source port ID in JSON?
| bool Json2msg::haveVersionPTP | ( | ) | const |
Is PTP major version in JSON?
| bool Json2msg::isUnicast | ( | ) | const |
Get Unicast flag
| mng_vals_e Json2msg::managementId | ( | ) | const |
Get management ID
| uint8_t Json2msg::minorVersionPTP | ( | ) | const |
Get PTP minor version
| uint8_t Json2msg::PTPProfileSpecific | ( | ) | const |
Get PTP profile specific
| uint32_t Json2msg::sdoId | ( | ) | const |
Get sdoId
| uint16_t Json2msg::sequenceId | ( | ) | const |
Get sequence ID
| bool Json2msg::setAction | ( | Message & | message | ) | const |
Call message setAction with parsed JSON
| [in,out] | message | object |
| const PortIdentity_t & Json2msg::srcPort | ( | ) | const |
Get source port ID
| uint8_t Json2msg::versionPTP | ( | ) | const |
Get PTP major version