14 #ifndef OFCORE_INSPECTORCLIENT_H 15 #define OFCORE_INSPECTORCLIENT_H 18 #include <boost/noncopyable.hpp> 81 virtual void addQuery(
const std::string& subject,
125 bool includeProps =
true,
127 size_t truncate = 0) = 0;
virtual void execute()=0
Attempt to execute all queued inspector commands.
virtual void addQuery(const std::string &subject, const modb::URI &uri)=0
Query for a particular managed object.
Inspect the state of a a managed object database using the inspector protocol.
Definition: InspectorClient.h:44
virtual void dumpToFile(FILE *file)=0
Dump the current MODB view to the specified file using the Opflex JSON wire format.
virtual void setFollowRefs(bool enabled)=0
Follow references for retrieved objects.
virtual void prettyPrint(std::ostream &output, bool tree=true, bool includeProps=true, bool utf8=true, size_t truncate=0)=0
Pretty print the current MODB to the provided output stream.
Definition: OFLogHandler.h:20
virtual void setRecursive(bool enabled)=0
Download the whole subtree rather than just the specific object for each query.
A URI is used to identify managed objects in the MODB.
Definition: URI.h:43
static InspectorClient * newInstance(const std::string &name, const modb::ModelMetadata &model)
Allocate a new inspector client for the given socket name.
Interface definition file for URIs.
virtual void addClassQuery(const std::string &subject)=0
Query for all managed objects of a particular type.
virtual ~InspectorClient()
Destroy the inspector client.
Definition: InspectorClient.h:49
virtual size_t loadFromFile(FILE *file)=0
Load a set of managed objects from the given file into the inspector's MODB view in order to display ...