stub_analytics_plugin
1.6
Network Optix Video Analytics SDK
|
#include <device_agent.h>
Classes | |
class | IHandler |
Public Member Functions | |
virtual Engine * | engine () const =0 |
virtual void | setSettings (const Settings *settings)=0 |
virtual Settings * | pluginSideSettings () const =0 |
virtual const IString * | manifest (Error *error) const =0 |
virtual Error | setHandler (IHandler *handler)=0 |
virtual Error | setNeededMetadataTypes (const IMetadataTypes *neededMetadataTypes)=0 |
![]() | |
virtual void * | queryInterface (const nxpl::NX_GUID &interfaceID)=0 |
Cast to type, specified by interfaceID. More... | |
virtual unsigned int | addRef ()=0 |
Increment reference counter. More... | |
virtual unsigned int | releaseRef ()=0 |
Decrement reference counter. More... | |
Interface used to control the process of fetching metadata from the resource.
All methods are guaranteed to be called without overlappings, even if from different threads, thus, no synchronization is required for the implementation.
|
pure virtual |
|
pure virtual |
Provides DeviceAgent manifest in JSON format.
|
pure virtual |
In addition to the settings stored in a Server database, a DeviceAgent can have some settings which are stored somewhere "under the hood" of the Engine, e.g. on a device acting as a DeviceAgent's backend. Such settings do not need to be explicitly marked in the Settings Model, but every time the Server offers the user to edit the values, it calls this method and merges the received values with the ones in its database.
|
pure virtual |
handler | Processes event metadata and object metadata fetched by DeviceAgent. DeviceAgent should fetch events metadata after setNeededMetadataTypes() call. Generic device related events (errors, warning, info messages) might also be reported via this handler. |
|
pure virtual |
Sets a list of metadata types that are needed by the Server. Empty list means that the Server doesn't need any metadata from this DeviceAgent.
neededMetadataTypes | Lists of type ids of events and objects. |
|
pure virtual |
Called before other methods. Server provides the set of settings stored in its database for the combination of a device instance and an Engine instance.
settings | Values of settings declared in the manifest. Never null. Valid only during the call. |