14 #ifndef MODB_MUTATOR_H
15 #define MODB_MUTATOR_H
21 #include "opflex/ofcore/OFTypes.h"
69 Mutator(
const std::string& owner);
79 const std::string& owner);
129 const URI& parent_uri,
132 const URI& child_uri);
136 friend class MutatorImpl;
~Mutator()
Destroy the Mutator.
void commit()
Commit the changes stored in the mutator to the object store.
A mutator represents a set of changes to apply to the data store.
Definition: Mutator.h:61
Mutator(const std::string &owner)
Create a mutator that will work with the default framework instance and owner.
Main interface to the OpFlex framework.
Definition: OFFramework.h:644
OF_SHARED_PTR< mointernal::ObjectInstance > & addChild(class_id_t parent_class, const URI &parent_uri, prop_id_t parent_prop, class_id_t child_class, const URI &child_uri)
Create a new child object with the specified class and URI, and make it a child of the given parent...
OF_SHARED_PTR< mointernal::ObjectInstance > & modify(class_id_t class_id, const URI &uri)
Create a new mutable object with the given URI which is a copy of any existing object with the specif...
An internal instance of an object in the managed object store.
Definition: ObjectInstance.h:103
Interface definition file for ObjectInstance.
A URI is used to identify managed objects in the MODB.
Definition: URI.h:43
Interface definition file for URIs.