21#include "opflex/ofcore/OFTypes.h"
79 const std::string& owner);
127 OF_SHARED_PTR<mointernal
129 const URI& parent_uri,
132 const URI& child_uri);
136 friend class MutatorImpl;
Interface definition file for ObjectInstance.
Interface definition file for URIs.
A URI is used to identify managed objects in the MODB.
Definition URI.h:43
Main interface to the OpFlex framework.
Definition OFFramework.h:644
Mutator(const std::string &owner)
Create a mutator that will work with the default framework instance and owner.
void remove(class_id_t class_id, const URI &uri)
Delete the child object specified along with its link to its parents.
Mutator(ofcore::OFFramework &framework, const std::string &owner)
Create a mutator that will work with the provided framework instance and owner.
~Mutator()
Destroy the Mutator.
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.
void commit()
Commit the changes stored in the mutator to the object store.
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...