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

The RelayOutput class represents a physical relay output. More...

#include <RelayOutput.h>

Public Types

enum  RelayStates {
  RelayStates::Unknown,
  RelayStates::Active,
  RelayStates::Inactive
}
 Values that represent the state of a relay output. More...
 

Public Member Functions

 RelayOutput (VxSdk::IVxRelayOutput *vxRelayOutput)
 Constructor. More...
 
virtual ~RelayOutput ()
 Destructor. More...
 
 !RelayOutput ()
 Finaliser. More...
 
Results::Value Refresh ()
 Refreshes this instances properties. More...
 

Package Functions

CPPCli::Device_GetHostDevice ()
 
void _SetRelayState (RelayStates state)
 

Package Attributes

VxSdk::IVxRelayOutput_relayOutput
 

Properties

System::String^  Description [get, set]
 Gets or sets the friendly description of the relay output. More...
 
CPPCli::Device^  HostDevice [get]
 Gets the device that hosts this relay output. More...
 
System::String^  Id [get]
 Gets the unique relay output identifier. More...
 
System::String^  Name [get, set]
 Gets or sets the friendly name. More...
 
RelayStates State [get, set]
 Gets the current state of this relay output. More...
 

Detailed Description

The RelayOutput class represents a physical relay output.

Definition at line 14 of file RelayOutput.h.

Member Enumeration Documentation

Values that represent the state of a relay output.

Enumerator
Unknown 

An error or unknown value was returned.

Active 

The relay output is active.

Inactive 

The relay output is inactive.

Definition at line 20 of file RelayOutput.h.

20  {
22  Unknown,
23 
25  Active,
26 
28  Inactive
29  };

Constructor & Destructor Documentation

CPPCli::RelayOutput::RelayOutput ( VxSdk::IVxRelayOutput vxRelayOutput)

Constructor.

Parameters
vxRelayOutputThe vx relay output.

Definition at line 9 of file RelayOutput.cpp.

9  {
10  _relayOutput = vxRelayOutput;
11 }
VxSdk::IVxRelayOutput * _relayOutput
Definition: RelayOutput.h:112
virtual CPPCli::RelayOutput::~RelayOutput ( )
inlinevirtual

Destructor.

Definition at line 40 of file RelayOutput.h.

40  {
41  this->!RelayOutput();
42  }
RelayOutput(VxSdk::IVxRelayOutput *vxRelayOutput)
Constructor.
Definition: RelayOutput.cpp:9
CPPCli::RelayOutput::!RelayOutput ( )

Finaliser.

Definition at line 13 of file RelayOutput.cpp.

13  {
15  _relayOutput = nullptr;
16 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxRelayOutput * _relayOutput
Definition: RelayOutput.h:112

Member Function Documentation

CPPCli::Device CPPCli::RelayOutput::_GetHostDevice ( )
package

Definition at line 22 of file RelayOutput.cpp.

22  {
23  // Get the host device
24  VxSdk::IVxDevice* device = nullptr;
26 
27  // Return the host device if GetHostDevice was successful
28  if (result == VxSdk::VxResult::kOK)
29  return gcnew CPPCli::Device(device);
30 
31  return nullptr;
32 }
VxSdk::IVxRelayOutput * _relayOutput
Definition: RelayOutput.h:112
virtual VxResult::Value GetHostDevice(IVxDevice *&hostDevice) const =0
The Device class represents a particular physical device in the system.
Definition: Device.h:15
void CPPCli::RelayOutput::_SetRelayState ( RelayStates  state)
package

Definition at line 34 of file RelayOutput.cpp.

34  {
35  switch(state) {
38  return;
41  return;
43  return;
44  }
45 }
virtual VxResult::Value Activate()=0
An error or unknown value was returned.
virtual VxResult::Value Deactivate()=0
VxSdk::IVxRelayOutput * _relayOutput
Definition: RelayOutput.h:112
The relay output is active.
The relay output is inactive.
CPPCli::Results::Value CPPCli::RelayOutput::Refresh ( )

Refreshes this instances properties.

Returns
The Result of updating the properties.

Definition at line 18 of file RelayOutput.cpp.

18  {
20 }
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
virtual VxResult::Value Refresh()=0
VxSdk::IVxRelayOutput * _relayOutput
Definition: RelayOutput.h:112

Member Data Documentation

VxSdk::IVxRelayOutput* CPPCli::RelayOutput::_relayOutput
package

Definition at line 112 of file RelayOutput.h.

Property Documentation

System:: String^ CPPCli::RelayOutput::Description
getset

Gets or sets the friendly description of the relay output.

The friendly description.

Definition at line 59 of file RelayOutput.h.

CPPCli:: Device^ CPPCli::RelayOutput::HostDevice
get

Gets the device that hosts this relay output.

The host device.

Definition at line 73 of file RelayOutput.h.

System:: String^ CPPCli::RelayOutput::Id
get

Gets the unique relay output identifier.

The unique identifier.

Definition at line 82 of file RelayOutput.h.

System:: String^ CPPCli::RelayOutput::Name
getset

Gets or sets the friendly name.

The friendly name.

Definition at line 91 of file RelayOutput.h.

RelayStates CPPCli::RelayOutput::State
getset

Gets the current state of this relay output.

The relay output state.

Definition at line 105 of file RelayOutput.h.


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