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

Parses Gate Control List (GCL) operational XML data and maps it to CncTypes.h data structures. More...

#include <GclParser.h>

Collaboration diagram for cnc::GclParser:
Collaboration graph

Static Public Member Functions

static bool parseOperationalGclData (const struct lyd_node *rootNode, CncNode_t &node)
 Parses GCL configuration data from the provided XML string and populates the given CncNode_t structure.
 

Static Private Member Functions

static void parseInterfaceGcl (const struct lyd_node *gclNode, ietfInterface_t &iface)
 Parses GCL configuration for a single interface from the given XML node pointer.
 

Detailed Description

Parses Gate Control List (GCL) operational XML data and maps it to CncTypes.h data structures.

This parser provides entry points to read interface-specific GCL information from XML and populate the corresponding TSN-related fields in CNC topology objects. It is intended to convert operational NETCONF/XML responses into strongly typed in-memory representations used by the controller logic.

Member Function Documentation

◆ parseInterfaceGcl()

void cnc::GclParser::parseInterfaceGcl ( const struct lyd_node *  gclNode,
ietfInterface_t &  iface 
)
staticprivate

Parses GCL configuration for a single interface from the given XML node pointer.

Parameters
xmlNodePtrPointer to the XML node containing the interface GCL data.
ifaceReference to the ietfInterface_t structure to populate.

◆ parseOperationalGclData()

bool cnc::GclParser::parseOperationalGclData ( const struct lyd_node *  rootNode,
CncNode_t &  node 
)
static

Parses GCL configuration data from the provided XML string and populates the given CncNode_t structure.

Parameters
xmlDataThe GCL configuration data in XML format.
nodeReference to the CncNode_t structure to populate.
Returns
true if parsing is successful, false otherwise.

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