blob: 49b5b29ee4e25629b7b785c020d7f9da899fcf57 [file] [log] [blame]
Václav Kubernát94938b72018-05-04 15:12:24 +02001/*
2 * Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
3 * Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
4 *
5 * Written by Václav Kubernát <kubervac@fit.cvut.cz>
6 *
7*/
8#include <string>
Václav Kubernátebca2552018-06-08 19:06:02 +02009#include "ast_path.hpp"
Václav Kubernát0b0272f2018-06-13 14:13:08 +020010#include "schema.hpp"
Václav Kubernát94938b72018-05-04 15:12:24 +020011
12std::string joinPaths(const std::string& prefix, const std::string& suffix);
Václav Kubernát60d6f292018-05-25 09:45:32 +020013std::string stripLastNodeFromPath(const std::string& path);
Václav Kubernátebca2552018-06-08 19:06:02 +020014path_ pathWithoutLastNode(const path_& path);
Václav Kubernát0b0272f2018-06-13 14:13:08 +020015std::string leafDataTypeToString(yang::LeafDataTypes type);
Václav Kubernát744f57f2018-06-29 22:46:26 +020016std::string fullNodeName(const path_& location, const ModuleNodePair& pair);