diff options
Diffstat (limited to 'src/cnode/cnode.hpp')
-rw-r--r-- | src/cnode/cnode.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cnode/cnode.hpp b/src/cnode/cnode.hpp index 0be02ca..aab2d4d 100644 --- a/src/cnode/cnode.hpp +++ b/src/cnode/cnode.hpp @@ -25,6 +25,8 @@ namespace cnode { class CfgNode { public: + CfgNode(vector<string>& path_comps, char *name, char *val, char *comment, + int deact, Cstore *cstore); CfgNode(Cstore& cstore, std::vector<string>& path_comps, bool active = false, bool recursive = true); ~CfgNode() {}; @@ -45,6 +47,9 @@ public: const std::string& getComment() const { return _comment; } const std::vector<CfgNode *>& getChildNodes() const { return _child_nodes; } + void addMultiValue(char *val) { _values.push_back(val); } + void addChildNode(CfgNode *cnode) { _child_nodes.push_back(cnode); } + private: bool _is_tag; bool _is_leaf; |