C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
CPPCli::Driver Class Reference

The Driver class represents a device communication driver. More...

#include <Driver.h>

Public Member Functions

 Driver (VxSdk::IVxDriver *vxDriver)
 Constructor. More...
 
virtual ~Driver ()
 Destructor. More...
 
 !Driver ()
 Finaliser. More...
 
Results::Value Refresh ()
 Refreshes this instances properties. More...
 

Package Functions

CPPCli::DataStorage_GetDataStorage ()
 

Package Attributes

VxSdk::IVxDriver_driver
 

Properties

CPPCli::DataStorage^  DataStorage [get]
 Gets the data storage that hosts this driver. More...
 
System::String^  Name [get]
 Gets the friendly name of the driver. More...
 
System::String^  Type [get]
 Gets the driver type identifier. More...
 
System::String^  Vendor [get]
 Gets the name of the vendor that manufactured the device that the driver is for. More...
 
System::String^  Version [get]
 Gets the driver version number. More...
 

Detailed Description

The Driver class represents a device communication driver.

Definition at line 14 of file Driver.h.

Constructor & Destructor Documentation

CPPCli::Driver::Driver ( VxSdk::IVxDriver vxDriver)

Constructor.

Parameters
vxDriverThe vx driver.

Definition at line 9 of file Driver.cpp.

9  {
10  _driver = vxDriver;
11 }
VxSdk::IVxDriver * _driver
Definition: Driver.h:87
virtual CPPCli::Driver::~Driver ( )
inlinevirtual

Destructor.

Definition at line 26 of file Driver.h.

26  {
27  this->!Driver();
28  }
Driver(VxSdk::IVxDriver *vxDriver)
Constructor.
Definition: Driver.cpp:9
CPPCli::Driver::!Driver ( )

Finaliser.

Definition at line 13 of file Driver.cpp.

13  {
14  _driver->Delete();
15  _driver = nullptr;
16 }
VxSdk::IVxDriver * _driver
Definition: Driver.h:87
virtual VxResult::Value Delete() const =0

Member Function Documentation

CPPCli::DataStorage CPPCli::Driver::_GetDataStorage ( )
package

Definition at line 22 of file Driver.cpp.

22  {
23  // Get the data storage which hosts this driver
24  VxSdk::IVxDataStorage* dataStorage = nullptr;
25  VxSdk::VxResult::Value result = _driver->GetDataStorage(dataStorage);
26 
27  // Return the device if GetDataStorage was successful
28  if (result == VxSdk::VxResult::kOK)
29  return gcnew CPPCli::DataStorage(dataStorage);
30 
31  return nullptr;
32 }
The DataStorage class represents a data storage provider in the system (e.g. an NSM5200 storage pool ...
Definition: DataStorage.h:18
virtual VxResult::Value GetDataStorage(IVxDataStorage *&dataStorage) const =0
VxSdk::IVxDriver * _driver
Definition: Driver.h:87
CPPCli::Results::Value CPPCli::Driver::Refresh ( )

Refreshes this instances properties.

Returns
The Result of updating the properties.

Definition at line 18 of file Driver.cpp.

18  {
20 }
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
VxSdk::IVxDriver * _driver
Definition: Driver.h:87
virtual VxResult::Value Refresh()=0

Member Data Documentation

VxSdk::IVxDriver* CPPCli::Driver::_driver
package

Definition at line 87 of file Driver.h.

Property Documentation

CPPCli:: DataStorage^ CPPCli::Driver::DataStorage
get

Gets the data storage that hosts this driver.

The data storage.

Definition at line 45 of file Driver.h.

System:: String^ CPPCli::Driver::Name
get

Gets the friendly name of the driver.

The friendly name.

Definition at line 54 of file Driver.h.

System:: String^ CPPCli::Driver::Type
get

Gets the driver type identifier.

The driver type identifier.

Definition at line 63 of file Driver.h.

System:: String^ CPPCli::Driver::Vendor
get

Gets the name of the vendor that manufactured the device that the driver is for.

The name of the vendor.

Definition at line 72 of file Driver.h.

System:: String^ CPPCli::Driver::Version
get

Gets the driver version number.

The version number.

Definition at line 81 of file Driver.h.


The documentation for this class was generated from the following files: