}
NetconfCfgContext::NetconfCfgContext(const NetconfCfgContext& orig)
- : DCfgContextBase(), hooks_config_(orig.hooks_config_) {
+ : ConfigBase(), hooks_config_(orig.hooks_config_) {
}
NetconfCfgMgr::NetconfCfgMgr()
- : DCfgMgrBase(DCfgContextBasePtr(new NetconfCfgContext())) {
+ : DCfgMgrBase(ConfigPtr(new NetconfCfgContext())) {
}
NetconfCfgMgr::~NetconfCfgMgr() {
return (s.str());
}
-DCfgContextBasePtr
+ConfigPtr
NetconfCfgMgr::createNewContext() {
- return (DCfgContextBasePtr(new NetconfCfgContext()));
+ return (ConfigPtr(new NetconfCfgContext()));
}
isc::data::ConstElementPtr
/// It provides a single enclosure for the storage of configuration parameters
/// and any other Netconf specific information that needs to be accessible
/// during configuration parsing as well as to the application as a whole.
-/// It is derived from the context base class, DCfgContextBase.
-class NetconfCfgContext : public process::DCfgContextBase {
+/// It is derived from the context base class, ConfigBase.
+class NetconfCfgContext : public process::ConfigBase {
public:
/// @brief Default constructor
/// @brief Creates a clone of this context object.
///
/// @return A pointer to the new clone.
- virtual process::DCfgContextBasePtr clone() {
- return (process::DCfgContextBasePtr(new NetconfCfgContext(*this)));
+ virtual process::ConfigPtr clone() {
+ return (process::ConfigPtr(new NetconfCfgContext(*this)));
}
/// @brief Returns non-const reference to configured hooks libraries.
/// existing context provided the configuration process completes without
/// error.
///
- /// @return Returns a DCfgContextBasePtr to the new context instance.
- virtual process::DCfgContextBasePtr createNewContext();
+ /// @return Returns a ConfigPtr to the new context instance.
+ virtual process::ConfigPtr createNewContext();
};
/// @brief Defines a shared pointer to NetconfCfgMgr.
ConstElementPtr answer = getCfgMgr()->simpleParseConfig(config_set,
check_only,
[this]() {
- DCfgContextBasePtr base_ctx = getCfgMgr()->getContext();
+ ConfigPtr base_ctx = getCfgMgr()->getContext();
NetconfCfgContextPtr
ctx = boost::dynamic_pointer_cast<NetconfCfgContext>(base_ctx);
using namespace std;
using namespace isc::netconf;
using namespace isc::data;
-using namespace isc::dhcp;
using namespace isc::hooks;
using namespace isc::process;
libs.add(exp_name, exp_param);
// Make a copy.
- DCfgContextBasePtr copy_base(ctx.clone());
+ ConfigPtr copy_base(ctx.clone());
NetconfCfgContextPtr copy = boost::dynamic_pointer_cast<NetconfCfgContext>(copy_base);
ASSERT_TRUE(copy);