stub_analytics_plugin
1.6
Network Optix Video Analytics SDK
|
#include <i_device_agent.h>
Classes | |
class | IHandler |
Public Member Functions | |
virtual IEngine * | engine () const =0 |
virtual void | setSettings (const IStringMap *settings)=0 |
virtual IStringMap * | pluginSideSettings () const =0 |
virtual const IString * | manifest (Error *outError) const =0 |
virtual Error | setHandler (IHandler *handler)=0 |
virtual Error | setNeededMetadataTypes (const IMetadataTypes *neededMetadataTypes)=0 |
![]() | |
virtual IRefCountable * | queryInterface (IRefCountable::InterfaceId id) override |
virtual IRefCountable * | queryInterface (InterfaceId id) |
const IRefCountable * | queryInterface (InterfaceId id) const |
Interface * | queryInterface () |
const Interface * | queryInterface () const |
![]() | |
virtual | ~IRefCountable ()=default |
const IRefCountable * | queryInterface (InterfaceId id) const |
template<class Interface > | |
Interface * | queryInterface () |
template<class Interface > | |
const Interface * | queryInterface () const |
virtual int | addRef () const =0 |
virtual int | releaseRef () const =0 |
Static Public Member Functions | |
static auto | interfaceId () |
![]() | |
static auto | interfaceId () |
Additional Inherited Members | |
![]() | |
IRefCountable * | queryInterfaceSupportingDeprecatedId (IRefCountable::InterfaceId id, const Uuid &deprecatedInterfaceId) |
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.
outError | Status of the operation; is set to noError before this call. |
|
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 does not 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, combined with the values received from the plugin via pluginSideSettings() (if any), 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. |