sysrepo  1.4.70
YANG datastore
Xpath_Ctx Class Reference

Class for wrapping sr_xpath_ctx_t. More...

#include <Xpath.hpp>

Public Member Functions

 Xpath_Ctx ()
 
char * begining ()
 
char * current_node ()
 
char * replaced_position ()
 
char replaced_char ()
 
 ~Xpath_Ctx ()
 
char * next_node (char *xpath)
 
char * next_node_with_ns (char *xpath)
 
char * next_key_name (char *xpath)
 
char * next_key_value (char *xpath)
 
char * node (char *xpath, const char *node_name)
 
char * node_rel (char *xpath, const char *node_name)
 
char * node_idx (char *xpath, size_t index)
 
char * node_idx_rel (char *xpath, size_t index)
 
char * node_key_value (char *xpath, const char *key)
 
char * node_key_value_idx (char *xpath, size_t index)
 
char * key_value (char *xpath, const char *node_name, const char *key_name)
 
char * key_value_idx (char *xpath, size_t node_index, size_t key_index)
 
char * last_node (char *xpath)
 
char * node_name (const char *xpath)
 
bool node_name_eq (const char *xpath, const char *node_str)
 
void recover ()
 

Detailed Description

Class for wrapping sr_xpath_ctx_t.

Definition at line 41 of file Xpath.hpp.

Constructor & Destructor Documentation

◆ Xpath_Ctx()

Xpath_Ctx ( )

Constructor for an empty sr_xpath_ctx_t.

◆ ~Xpath_Ctx()

~Xpath_Ctx ( )

Member Function Documentation

◆ begining()

char* begining ( )
inline

Getter for begining.

Definition at line 47 of file Xpath.hpp.

◆ current_node()

char* current_node ( )
inline

Getter for current_node.

Definition at line 49 of file Xpath.hpp.

◆ replaced_position()

char* replaced_position ( )
inline

Getter for replaced_position.

Definition at line 51 of file Xpath.hpp.

◆ replaced_char()

char replaced_char ( )
inline

Getter for replaced_char.

Definition at line 53 of file Xpath.hpp.

◆ next_node()

char* next_node ( char *  xpath)
inline

Wrapper for sr_xpath_next_node.

Definition at line 56 of file Xpath.hpp.

◆ next_node_with_ns()

char* next_node_with_ns ( char *  xpath)
inline

Wrapper for sr_xpath_next_node_with_ns.

Definition at line 58 of file Xpath.hpp.

◆ next_key_name()

char* next_key_name ( char *  xpath)
inline

Wrapper for sr_xpath_next_key_name.

Definition at line 60 of file Xpath.hpp.

◆ next_key_value()

char* next_key_value ( char *  xpath)
inline

Wrapper for sr_xpath_next_key_value.

Definition at line 62 of file Xpath.hpp.

◆ node()

char* node ( char *  xpath,
const char *  node_name 
)
inline

Wrapper for sr_xpath_node.

Definition at line 64 of file Xpath.hpp.

◆ node_rel()

char* node_rel ( char *  xpath,
const char *  node_name 
)
inline

Wrapper for sr_xpath_node_rel.

Definition at line 66 of file Xpath.hpp.

◆ node_idx()

char* node_idx ( char *  xpath,
size_t  index 
)
inline

Wrapper for sr_xpath_node_idx.

Definition at line 68 of file Xpath.hpp.

◆ node_idx_rel()

char* node_idx_rel ( char *  xpath,
size_t  index 
)
inline

Wrapper for sr_xpath_node_idx_rel.

Definition at line 70 of file Xpath.hpp.

◆ node_key_value()

char* node_key_value ( char *  xpath,
const char *  key 
)
inline

Wrapper for sr_xpath_node_key_value.

Definition at line 72 of file Xpath.hpp.

◆ node_key_value_idx()

char* node_key_value_idx ( char *  xpath,
size_t  index 
)
inline

Wrapper for sr_xpath_node_key_value_idx.

Definition at line 74 of file Xpath.hpp.

◆ key_value()

char* key_value ( char *  xpath,
const char *  node_name,
const char *  key_name 
)
inline

Wrapper for sr_xpath_key_value.

Definition at line 76 of file Xpath.hpp.

◆ key_value_idx()

char* key_value_idx ( char *  xpath,
size_t  node_index,
size_t  key_index 
)
inline

Wrapper for sr_xpath_key_value_idx.

Definition at line 79 of file Xpath.hpp.

◆ last_node()

char* last_node ( char *  xpath)
inline

Wrapper for sr_xpath_last_node.

Definition at line 82 of file Xpath.hpp.

◆ node_name()

char* node_name ( const char *  xpath)
inline

Wrapper for sr_xpath_node_name.

Definition at line 84 of file Xpath.hpp.

◆ node_name_eq()

bool node_name_eq ( const char *  xpath,
const char *  node_str 
)
inline

Wrapper for sr_xpath_node_name_eq.

Definition at line 86 of file Xpath.hpp.

◆ recover()

void recover ( )
inline

Wrapper for sr_xpath_recover.

Definition at line 88 of file Xpath.hpp.


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