![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The Situation class represents a particular situation configuration that specifies how corresponding events shall be generated and handled when the situation is detected. More...
#include <Situation.h>
Public Member Functions | |
Situation (VxSdk::IVxSituation *vxSituation) | |
Constructor. More... | |
virtual | ~Situation () |
Destructor. More... | |
!Situation () | |
Finaliser. More... | |
Results::Value | AddNotification (Notification^ notification) |
Adds a notification to the list of notifications that this situation serves. More... | |
Results::Value | Link (DataSource^ dataSource) |
Associate a data source with this situation. More... | |
Results::Value | Link (Device^ device) |
Associate a device with this situation. More... | |
Results::Value | Refresh () |
Update this instances properties. More... | |
Results::Value | RemoveNotification (Notification^ notification) |
Removes a notification from the list of notifications that this situation serves. More... | |
Results::Value | UnLink (Device^ device) |
Remove device association from this situation. More... | |
Results::Value | UnLink (DataSource^ dataSource) |
Remove data source association from this situation. More... | |
Package Functions | |
System::Collections::Generic::List< DataSource^ >^ | _GetLinkedDataSources () |
System::Collections::Generic::List< Device^ >^ | _GetLinkedDevices () |
System::Collections::Generic::List< Notification^ >^ | _GetNotifications () |
System::Collections::Generic::List< int >^ | _GetSnoozeIntervals () |
Package Attributes | |
VxSdk::IVxSituation * | _situation |
Properties | |
int | AudibleLoopDelay [get, set] |
Gets or sets the seconds to wait between audible notifications. More... | |
int | AudiblePlayCount [get, set] |
Gets or sets the amount of times to play audible notifications. More... | |
int | AutoAcknowledge [get, set] |
Gets or sets the number of seconds after which a generated event state will be set to AutoAcked. More... | |
bool | IsAckNeeded [get, set] |
Gets or sets whether the generated events shall have an initial state of AckNeeded or NoAckNeeded. More... | |
System::Collections::Generic::List< DataSource^ >^ | LinkedDataSources [get] |
Gets the data sources associated with this situation. More... | |
System::Collections::Generic::List< Device^ >^ | LinkedDevices [get] |
Gets the devices associated with this situation. More... | |
System::String^ | Name [get, set] |
Gets or sets the situation friendly name. More... | |
System::Collections::Generic::List< Notification^ >^ | Notifications [get] |
Gets the notifications configured for this situation. More... | |
System::String^ | ServicePropertyId [get] |
Gets the name of the key in the properties map corresponding to the service identifier for the source of this situation, if any. More... | |
System::String^ | ServiceType [get] |
Gets the resource type of the service corresponding to the source of this situation, if any. More... | |
int | Severity [get, set] |
Gets or sets the severity of the generated event, from 1 (highest) to 10 (lowest). More... | |
bool | ShouldExpandBanner [get, set] |
Gets or sets whether the notification banner on clients should be expanded by default. More... | |
bool | ShouldLog [get, set] |
Gets or sets whether events generated from this situation shall be persisted or immediately be discarded. More... | |
bool | ShouldNotify [get, set] |
Gets or sets whether an event generated from the situation shall generate notifications. More... | |
System::Collections::Generic::List< int >^ | SnoozeIntervals [get, set] |
Gets or sets the default snooze intervals, in seconds, for a generated event. More... | |
System::String^ | SourceDeviceId [get] |
Gets the unique source identifier. More... | |
System::String^ | Type [get] |
Gets the situation type. More... | |
bool | UseAudibleNotification [get, set] |
Gets or sets whether a notification sound should play on supporting clients when an event is received. More... | |
The Situation class represents a particular situation configuration that specifies how corresponding events shall be generated and handled when the situation is detected.
Definition at line 15 of file Situation.h.
CPPCli::Situation::Situation | ( | VxSdk::IVxSituation * | vxSituation | ) |
|
inlinevirtual |
Destructor.
Definition at line 27 of file Situation.h.
CPPCli::Situation::!Situation | ( | ) |
|
package |
Definition at line 64 of file Situation.cpp.
|
package |
Definition at line 89 of file Situation.cpp.
|
package |
Definition at line 114 of file Situation.cpp.
|
package |
Definition at line 139 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::AddNotification | ( | CPPCli::Notification^ | notification | ) |
Adds a notification to the list of notifications that this situation serves.
notification | The notification to be added. |
Definition at line 18 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::Link | ( | CPPCli::DataSource^ | dataSource | ) |
Associate a data source with this situation.
dataSource | The data source to associate the situation with. |
Definition at line 25 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::Link | ( | CPPCli::Device^ | device | ) |
Associate a device with this situation.
device | The device to associate the situation with. |
Definition at line 32 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::Refresh | ( | ) |
Update this instances properties.
Definition at line 39 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::RemoveNotification | ( | CPPCli::Notification^ | notification | ) |
Removes a notification from the list of notifications that this situation serves.
notification | The notification to be removed. |
Definition at line 43 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::UnLink | ( | CPPCli::Device^ | device | ) |
Remove device association from this situation.
device | The device to remove association with. |
Definition at line 57 of file Situation.cpp.
CPPCli::Results::Value CPPCli::Situation::UnLink | ( | CPPCli::DataSource^ | dataSource | ) |
Remove data source association from this situation.
dataSource | The data source to remove association with. |
Definition at line 50 of file Situation.cpp.
|
package |
Definition at line 269 of file Situation.h.
|
getset |
Gets or sets the seconds to wait between audible notifications.
The seconds between audible notifications.
Definition at line 88 of file Situation.h.
|
getset |
Gets or sets the amount of times to play audible notifications.
The amount of times to play audible notifications.
Definition at line 98 of file Situation.h.
|
getset |
Gets or sets the number of seconds after which a generated event state will be set to AutoAcked.
The number of seconds before auto-acknowledgement.
Definition at line 108 of file Situation.h.
|
getset |
Gets or sets whether the generated events shall have an initial state of AckNeeded or NoAckNeeded.
true
if events will require acknowledgement, false
if not.
Definition at line 118 of file Situation.h.
|
get |
Gets the data sources associated with this situation.
A list of data sources.
Definition at line 128 of file Situation.h.
|
get |
Gets the devices associated with this situation.
A list of devices.
Definition at line 137 of file Situation.h.
|
getset |
Gets or sets the situation friendly name.
The friendly name.
Definition at line 146 of file Situation.h.
|
get |
Gets the notifications configured for this situation.
A list of notifications.
Definition at line 160 of file Situation.h.
|
get |
Gets the name of the key in the properties map corresponding to the service identifier for the source of this situation, if any.
The service property identifier for the source of this situation.
Definition at line 169 of file Situation.h.
|
get |
Gets the resource type of the service corresponding to the source of this situation, if any.
The service type for the source of this situation.
Definition at line 178 of file Situation.h.
|
getset |
Gets or sets the severity of the generated event, from 1 (highest) to 10 (lowest).
The event severity.
Definition at line 187 of file Situation.h.
|
getset |
Gets or sets whether the notification banner on clients should be expanded by default.
true
if the banner should be expanded, false
if not.
Definition at line 197 of file Situation.h.
|
getset |
Gets or sets whether events generated from this situation shall be persisted or immediately be discarded.
true
if events will be logged, false
if not.
Definition at line 207 of file Situation.h.
|
getset |
Gets or sets whether an event generated from the situation shall generate notifications.
true
if notifications will be sent, false
if not.
Definition at line 217 of file Situation.h.
|
getset |
Gets or sets the default snooze intervals, in seconds, for a generated event.
A list of snooze intervals in seconds.
Definition at line 227 of file Situation.h.
|
get |
Gets the unique source identifier.
The unique source identifier.
Definition at line 244 of file Situation.h.
|
get |
|
getset |
Gets or sets whether a notification sound should play on supporting clients when an event is received.
true
if audio should play on event notification, false
if not.
Definition at line 262 of file Situation.h.