From 29273c0ba8399d0b135384aec33d71fe28a93169 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 19 Aug 2010 17:48:55 -0700 Subject: add API function --- src/cstore/cstore.cpp | 13 +++++++++++-- src/cstore/cstore.hpp | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cstore/cstore.cpp b/src/cstore/cstore.cpp index 3cd0649..33210dc 100644 --- a/src/cstore/cstore.cpp +++ b/src/cstore/cstore.cpp @@ -1095,11 +1095,20 @@ Cstore::cfgPathGetDeletedChildNodesDA(const vector& path_comps, void Cstore::cfgPathGetDeletedValues(const vector& path_comps, vector& dvals) +{ + cfgPathGetDeletedValuesDA(path_comps, dvals, false); +} + +// same as above but DA +void +Cstore::cfgPathGetDeletedValuesDA(const vector& path_comps, + vector& dvals, + bool include_deactivated) { vector ovals; vector nvals; - if (!cfgPathGetValues(path_comps, ovals, true) - || !cfgPathGetValues(path_comps, nvals, false)) { + if (!cfgPathGetValuesDA(path_comps, ovals, true, include_deactivated) + || !cfgPathGetValuesDA(path_comps, nvals, false, include_deactivated)) { return; } map dmap; diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp index 492462e..37a3e06 100644 --- a/src/cstore/cstore.hpp +++ b/src/cstore/cstore.hpp @@ -240,6 +240,9 @@ public: void cfgPathGetDeletedChildNodesDA(const vector& path_comps, vector& cnodes, bool include_deactivated = true); + void cfgPathGetDeletedValuesDA(const vector& path_comps, + vector& dvals, + bool include_deactivated = true); void cfgPathGetChildNodesStatusDA(const vector& path_comps, map& cmap); -- cgit v1.2.3