Unify Framework Lib 1.6.0
attribute_store_test_helpers.hpp File Reference
#include <string>
#include <iostream>
#include <vector>
#include <regex>
#include "attribute.hpp"

Go to the source code of this file.

Functions

attribute create_branch (std::string branch_descriptor, attribute branch_root=0)
 Parse branch descriptor and create branch starting from branch root node. More...
 
attribute check_branch (std::string branch_descriptor, attribute branch_root=0)
 Parse branch descriptor and check branch starting from branch root node. More...
 

Function Documentation

◆ check_branch()

attribute check_branch ( std::string  branch_descriptor,
attribute  branch_root = 0 
)

Parse branch descriptor and check branch starting from branch root node.

Parameters
branch_descriptorString to describe attribute branch.
branch_rootRoot node for branch (optional param, attribute::root() by default).
Returns
node_id of last attribute in branch if parse branch_descriptor was successfull.
ATTRIBUTE_STORE_INVALID_NODE if parse did not succeed or nodes in branch not exists.

◆ create_branch()

attribute create_branch ( std::string  branch_descriptor,
attribute  branch_root = 0 
)

Parse branch descriptor and create branch starting from branch root node.

Parameters
branch_descriptorString to describe attribute branch.
branch_rootRoot node for branch (optional param, attribute::root() by default).
Returns
node_id of last attribute in branch if parse branch_descriptor was successfull.
ATTRIBUTE_STORE_INVALID_NODE if parse did not succeed.