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

The AlarmInput class represents a physical alarm input. More...

#include <AlarmInput.h>

Public Types

enum  AlarmStates {
  AlarmStates::Unknown,
  AlarmStates::Active,
  AlarmStates::Inactive
}
 Values that represent the state of an alarm input. More...
 

Public Member Functions

 AlarmInput (VxSdk::IVxAlarmInput *vxAlarmInput)
 Constructor. More...
 
virtual ~AlarmInput ()
 Destructor. More...
 
 !AlarmInput ()
 Finaliser. More...
 
Results::Value Refresh ()
 Refreshes this instances properties. More...
 

Package Functions

CPPCli::Device_GetHostDevice ()
 

Package Attributes

VxSdk::IVxAlarmInput_alarmInput
 

Properties

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

Detailed Description

The AlarmInput class represents a physical alarm input.

Definition at line 14 of file AlarmInput.h.

Member Enumeration Documentation

Values that represent the state of an alarm input.

Enumerator
Unknown 

An error or unknown value was returned.

Active 

The alarm input is active.

Inactive 

The alarm input is inactive.

Definition at line 20 of file AlarmInput.h.

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

Constructor & Destructor Documentation

CPPCli::AlarmInput::AlarmInput ( VxSdk::IVxAlarmInput vxAlarmInput)

Constructor.

Parameters
vxAlarmInputThe vx alarm input.

Definition at line 9 of file AlarmInput.cpp.

9  {
10  _alarmInput = vxAlarmInput;
11 }
VxSdk::IVxAlarmInput * _alarmInput
Definition: AlarmInput.h:111
virtual CPPCli::AlarmInput::~AlarmInput ( )
inlinevirtual

Destructor.

Definition at line 40 of file AlarmInput.h.

40  {
41  this->!AlarmInput();
42  }
AlarmInput(VxSdk::IVxAlarmInput *vxAlarmInput)
Constructor.
Definition: AlarmInput.cpp:9
CPPCli::AlarmInput::!AlarmInput ( )

Finaliser.

Definition at line 13 of file AlarmInput.cpp.

13  {
15  _alarmInput = nullptr;
16 }
virtual VxResult::Value Delete() const =0
VxSdk::IVxAlarmInput * _alarmInput
Definition: AlarmInput.h:111

Member Function Documentation

CPPCli::Device CPPCli::AlarmInput::_GetHostDevice ( )
package

Definition at line 22 of file AlarmInput.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 }
virtual VxResult::Value GetHostDevice(IVxDevice *&hostDevice) const =0
VxSdk::IVxAlarmInput * _alarmInput
Definition: AlarmInput.h:111
The Device class represents a particular physical device in the system.
Definition: Device.h:15
CPPCli::Results::Value CPPCli::AlarmInput::Refresh ( )

Refreshes this instances properties.

Returns
The Result of updating the properties.

Definition at line 18 of file AlarmInput.cpp.

18  {
20 }
Value
Values that represent the result of calls to the VideoXpert system.
Definition: Utils.h:21
VxSdk::IVxAlarmInput * _alarmInput
Definition: AlarmInput.h:111
virtual VxResult::Value Refresh()=0

Member Data Documentation

VxSdk::IVxAlarmInput* CPPCli::AlarmInput::_alarmInput
package

Definition at line 111 of file AlarmInput.h.

Property Documentation

System:: String^ CPPCli::AlarmInput::Description
getset

Gets or sets the friendly description of the alarm input.

The friendly description.

Definition at line 59 of file AlarmInput.h.

CPPCli:: Device^ CPPCli::AlarmInput::HostDevice
get

Gets the device that hosts this alarm input.

The host device.

Definition at line 73 of file AlarmInput.h.

System:: String^ CPPCli::AlarmInput::Id
get

Gets the unique alarm input identifier.

The unique identifier.

Definition at line 82 of file AlarmInput.h.

System:: String^ CPPCli::AlarmInput::Name
getset

Gets or sets the friendly name.

The friendly name.

Definition at line 91 of file AlarmInput.h.

AlarmStates CPPCli::AlarmInput::State
get

Gets the current state of this alarm input.

The alarm input state.

Definition at line 105 of file AlarmInput.h.


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