Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
cnc::PtpParser Class Reference

Parses PTP data from libyang XML nodes and populates CncNode_t structures. This parser is responsible for extracting PTP-related data from the XML data provided by the NETCONF/YANG models. It maps the relevant XML nodes to the corresponding fields in the CncNode_t structure defined in CncTypes.h. More...

#include <PtpParser.h>

Collaboration diagram for cnc::PtpParser:
Collaboration graph

Static Public Member Functions

static bool parseOperationalPtpData (const struct lyd_node *root, CncNode_t &node)
 Parses PTP data from the given XML node and populates the ptpAllData field of the provided CncNode_t.
 

Detailed Description

Parses PTP data from libyang XML nodes and populates CncNode_t structures. This parser is responsible for extracting PTP-related data from the XML data provided by the NETCONF/YANG models. It maps the relevant XML nodes to the corresponding fields in the CncNode_t structure defined in CncTypes.h.

Member Function Documentation

◆ parseOperationalPtpData()

bool cnc::PtpParser::parseOperationalPtpData ( const struct lyd_node *  root,
CncNode_t &  node 
)
static

Parses PTP data from the given XML node and populates the ptpAllData field of the provided CncNode_t.

Parameters
rootThe root XML node containing PTP data (expected to be the result of a Netconf <get> operation).
nodeThe CncNode_t instance to populate with the parsed PTP data.
Returns
true if parsing was successful and ptpAllData was populated, false otherwise.

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