Library: Netconf
Package: Service
Header: Poco/Netconf/DataStore.h
Member Functions: containsAttributes, content, editConfig, get, getName, isLocked, isSubTree, lock, operator =, setName, unlock, unlockSilent
DataStore(
const DataStore & other
);
Creates a deep-copy of the store.
DataStore(
Poco::AutoPtr < XML::Document > doc,
const std::string & name
);
Creates the DataStore. Netiher doc nor name are allowed to be empty.
~DataStore();
Destroys the DataStore.
static bool containsAttributes(
XML::Element * pIn,
XML::Element * pOrig
);
Returns true if foreach attribute found in pIn a matching one is found in pOrig.
const Poco::AutoPtr < XML::Document > & content() const;
Returns the content of the data store.
void editConfig(
Poco::AutoPtr < XML::Document > config,
Utility::DefaultOperation defaultOperation = Utility::DOP_MERGE,
Utility::TestOption testOption = Utility::TO_TESTTHENSET,
Utility::ErrorOption errorOption = Utility::EO_STOP
);
Implements the edit-config operation.
Poco::AutoPtr < XML::Document > get(
const Filter & filter
);
Retrieves configuration data.
const std::string & getName() const;
Returns the name of the DataStore.
bool isLocked() const;
Returns lock status.
static bool isSubTree(
XML::Element * pIn,
XML::Element * pOrig
);
Returns true if pOrig contains all elements/attributes found in pIn
void lock();
Implements the lock operation.
DataStore & operator = (
const DataStore & other
);
Assignment operator. Creates a deep-copy of the DataStore.
void setName(
const std::string & name
);
Allows to change the name of a DataStore (must not be empty!).
void unlock();
Implements the unlock operation. Throws an exception if the sessionid doesn't match
bool unlockSilent(
Poco::UInt32 sessionId
);
Same as unlock but no exception will be thrown. Returns true if the sessionIds matched.