The DeviceAssignment class represents a device assignment.
More...
#include <DeviceAssignment.h>
The DeviceAssignment class represents a device assignment.
Definition at line 15 of file DeviceAssignment.h.
Constructor.
- Parameters
-
vxDeviceAssignment | The vx device assignment. |
Definition at line 9 of file DeviceAssignment.cpp.
VxSdk::IVxDeviceAssignment * _deviceAssignment
virtual CPPCli::DeviceAssignment::~DeviceAssignment |
( |
| ) |
|
|
inlinevirtual |
Destructor.
Definition at line 27 of file DeviceAssignment.h.
DeviceAssignment(VxSdk::IVxDeviceAssignment *vxDeviceAssignment)
Constructor.
CPPCli::DeviceAssignment::!DeviceAssignment |
( |
| ) |
|
Finaliser.
Definition at line 13 of file DeviceAssignment.cpp.
VxSdk::IVxDeviceAssignment * _deviceAssignment
virtual VxResult::Value Delete() const =0
Definition at line 18 of file DeviceAssignment.cpp.
20 List<CPPCli::DataSource^>^ mlist =
gcnew List<CPPCli::DataSource^>();
33 for (
int i = 0; i < dataSources.collectionSize; i++)
37 delete[] dataSources.collection;
virtual VxResult::Value GetDataSources(VxCollection< IVxDataSource ** > &dataSourceCollection) const =0
The DataSource class represents a data producer in the system hosted by a device. Each DataSource pro...
VxSdk::IVxDeviceAssignment * _deviceAssignment
Definition at line 42 of file DeviceAssignment.cpp.
The DataStorage class represents a data storage provider in the system (e.g. an NSM5200 storage pool ...
virtual VxResult::Value GetDataStorage(IVxDataStorage *&dataStorage) const =0
VxSdk::IVxDeviceAssignment * _deviceAssignment
Definition at line 55 of file DeviceAssignment.cpp.
virtual VxResult::Value GetDevice(IVxDevice *&device) const =0
VxSdk::IVxDeviceAssignment * _deviceAssignment
The Device class represents a particular physical device in the system.
Definition at line 68 of file DeviceAssignment.cpp.
virtual VxResult::Value GetDriver(IVxDriver *&driver) const =0
VxSdk::IVxDeviceAssignment * _deviceAssignment
The Driver class represents a device communication driver.
void CPPCli::DeviceAssignment::_SetDataSources |
( |
System::Collections::Generic::List< CPPCli::DataSource^ >^ |
dataSources | ) |
|
|
package |
Definition at line 81 of file DeviceAssignment.cpp.
83 int dataSourceIdSize = dataSources->Count;
84 if (dataSourceIdSize == 0)
89 dataSourceIds =
new char*[dataSourceIdSize];
90 for (
int i = 0; i < dataSourceIdSize; i++) {
91 int idLength = dataSources[i]->Id->Length + 1;
92 dataSourceIds[i] =
new char[idLength];
virtual VxResult::Value SetDataSources(char **dataSourceIds, int dataSourceIdSize)=0
static void StrCopySafe(char(&dst)[dstSize], const char *src)
VxSdk::IVxDeviceAssignment * _deviceAssignment
System::String^ Id
Gets the unique identifier of the device assignment.
static const char * ConvertSysString(System::String^ sysString)
Convert a system string to a char.
System:: Collections:: Generic:: List< CPPCli:: DataSource^>^ CPPCli::DeviceAssignment::DataSources |
|
getset |
Gets or sets the data sources assigned by this device assignment.
A List
of data sources.
Definition at line 40 of file DeviceAssignment.h.
CPPCli:: DataStorage^ CPPCli::DeviceAssignment::DataStorage |
|
get |
CPPCli:: Device^ CPPCli::DeviceAssignment::Device |
|
get |
CPPCli:: Driver^ CPPCli::DeviceAssignment::Driver |
|
get |
System:: String^ CPPCli::DeviceAssignment::DriverType |
|
getset |
System:: String^ CPPCli::DeviceAssignment::Id |
|
get |
Gets the unique identifier of the device assignment.
The unique identifier.
Definition at line 91 of file DeviceAssignment.h.
The documentation for this class was generated from the following files: