Software TSN Switch
A software switch to connect VMs and Containers to a TSN network
Loading...
Searching...
No Matches
Namespaces | Functions
PtpParser.cpp File Reference
#include "../include/PtpParser.h"
#include <libyang/libyang.h>
#include <spdlog/spdlog.h>
#include <cstring>
#include <iostream>
#include <string>
#include "PerformanceLogger.h"
Include dependency graph for PtpParser.cpp:

Namespaces

namespace  cnc
 

Functions

static std::string cnc::getXpathValue (const struct lyd_node *contextNode, const char *xpath)
 
static uint32_t cnc::getXpathValueUint32 (const struct lyd_node *contextNode, const char *xpath, uint32_t defaultVal=0)
 
static uint64_t cnc::getXpathValueUint64 (const struct lyd_node *contextNode, const char *xpath, uint64_t defaultVal=0)
 
static int64_t cnc::getXpathValueInt64 (const struct lyd_node *contextNode, const char *xpath, int64_t defaultVal=0)
 
static bool cnc::getXpathValueBool (const struct lyd_node *contextNode, const char *xpath, bool defaultVal=false)
 
static PtpInstanceType_t cnc::stringToInstanceType (const std::string &str)
 
static PtpPortState_t cnc::stringToPortState (const std::string &str)
 
static PtpPerformanceParameters_t cnc::parsePerfParams (const struct lyd_node *contextNode, const std::string &prefix, bool useShortMinMax=false)