![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The DataStorage class represents a data storage provider in the system (e.g. an NSM5200 storage pool or a VxRecorder) hosted by a system device. The DataStorage can be directed to store media produced by a device by assigning the device to it. More...
#include <DataStorage.h>
Public Types | |
enum | DataStorageTypes { DataStorageTypes::Unknown, DataStorageTypes::DigitalSentry, DataStorageTypes::NSM, DataStorageTypes::VideoXpertStorage, DataStorageTypes::Edge } |
Values that represent data storage hardware types. More... | |
Public Member Functions | |
DataStorage (VxSdk::IVxDataStorage *vxDataStorage) | |
Constructor. More... | |
virtual | ~DataStorage () |
Destructor. More... | |
!DataStorage () | |
Finaliser. More... | |
Results::Value | AssignDevice (NewDeviceAssignment^ newDeviceAssignment) |
Assign a device to this data storage to be managed and recorded based on its configuration. More... | |
Results::Value | Refresh () |
Refreshes this instances properties. More... | |
Results::Value | UnassignDevice (Device^ device) |
Unassign a device from this data storage. More... | |
Package Functions | |
System::Collections::Generic::List< CPPCli::DataSource^ >^ | _GetDataSources () |
System::Collections::Generic::List< CPPCli::DeviceAssignment^ >^ | _GetDeviceAssignments () |
System::Collections::Generic::List< CPPCli::Driver^ >^ | _GetDrivers () |
CPPCli::Device^ | _GetHostDevice () |
CPPCli::Configuration::Storage^ | _GetStorageConfig () |
Package Attributes | |
VxSdk::IVxDataStorage * | _dataStorage |
Properties | |
CPPCli::Configuration::Storage^ | Configuration [get] |
Gets the device assignments for this data storage. More... | |
System::Collections::Generic::List< CPPCli::DataSource^ >^ | DataSources [get] |
Gets the data sources assigned to this data storage. More... | |
System::Collections::Generic::List< CPPCli::DeviceAssignment^ >^ | DeviceAssignments [get] |
Gets the device assignments for this data storage. More... | |
System::Collections::Generic::List< CPPCli::Driver^ >^ | Drivers [get] |
Gets the drivers provided by this data storage. More... | |
CPPCli::Device^ | HostDevice [get] |
Gets the device that hosts this data storage. More... | |
System::String^ | Id [get] |
Gets the unique identifier of the data storage. More... | |
bool | IsFailover [get] |
Gets a value indicating whether the data storage is configured as a failover unit. More... | |
System::String^ | Name [get, set] |
Gets or sets the friendly name of the data storage. More... | |
DataStorageTypes | Type [get] |
Gets the type of data storage. More... | |
The DataStorage class represents a data storage provider in the system (e.g. an NSM5200 storage pool or a VxRecorder) hosted by a system device. The DataStorage can be directed to store media produced by a device by assigning the device to it.
Definition at line 18 of file DataStorage.h.
|
strong |
Values that represent data storage hardware types.
Definition at line 24 of file DataStorage.h.
CPPCli::DataStorage::DataStorage | ( | VxSdk::IVxDataStorage * | vxDataStorage | ) |
Constructor.
vxDataStorage | The vx data storage. |
Definition at line 8 of file DataStorage.cpp.
|
inlinevirtual |
Destructor.
Definition at line 50 of file DataStorage.h.
CPPCli::DataStorage::!DataStorage | ( | ) |
|
package |
Definition at line 56 of file DataStorage.cpp.
|
package |
Definition at line 80 of file DataStorage.cpp.
|
package |
Definition at line 104 of file DataStorage.cpp.
|
package |
Definition at line 128 of file DataStorage.cpp.
|
package |
Definition at line 140 of file DataStorage.cpp.
CPPCli::Results::Value CPPCli::DataStorage::AssignDevice | ( | CPPCli::NewDeviceAssignment^ | newDeviceAssignment | ) |
Assign a device to this data storage to be managed and recorded based on its configuration.
newDeviceAssignment | The new device assignment to be added to the data storage. |
Definition at line 17 of file DataStorage.cpp.
CPPCli::Results::Value CPPCli::DataStorage::Refresh | ( | ) |
Refreshes this instances properties.
Definition at line 42 of file DataStorage.cpp.
CPPCli::Results::Value CPPCli::DataStorage::UnassignDevice | ( | CPPCli::Device^ | device | ) |
Unassign a device from this data storage.
device | The device to be unassigned from the data storage. |
Definition at line 46 of file DataStorage.cpp.
|
package |
Definition at line 166 of file DataStorage.h.
|
get |
Gets the device assignments for this data storage.
A List
of device assignments.
Definition at line 83 of file DataStorage.h.
|
get |
Gets the data sources assigned to this data storage.
A List
of data sources.
Definition at line 92 of file DataStorage.h.
|
get |
Gets the device assignments for this data storage.
A List
of device assignments.
Definition at line 101 of file DataStorage.h.
|
get |
Gets the drivers provided by this data storage.
A List
of drivers.
Definition at line 110 of file DataStorage.h.
|
get |
Gets the device that hosts this data storage.
The host device.
Definition at line 119 of file DataStorage.h.
|
get |
Gets the unique identifier of the data storage.
The unique identifier.
Definition at line 128 of file DataStorage.h.
|
get |
Gets a value indicating whether the data storage is configured as a failover unit.
true
if the data storage is a failover unit, false
if not.
Definition at line 137 of file DataStorage.h.
|
getset |
Gets or sets the friendly name of the data storage.
The friendly name.
Definition at line 146 of file DataStorage.h.
|
get |