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

The Preset class represents a predefined point that a PTZ device can PTZ to when triggered. More...

#include <Preset.h>

Public Member Functions

 Preset (VxSdk::IVxPreset *vxPreset)
 Constructor. More...
 
virtual ~Preset ()
 Destructor. More...
 
 !Preset ()
 Finaliser. More...
 

Package Attributes

VxSdk::IVxPreset_preset
 

Properties

System::String^  Description [get]
 Gets the friendly description of the preset. More...
 
int Index [get]
 Gets the unique numerical sequence value of this preset. More...
 
System::String^  Name [get]
 Gets the friendly name of the preset. More...
 

Detailed Description

The Preset class represents a predefined point that a PTZ device can PTZ to when triggered.

Definition at line 12 of file Preset.h.

Constructor & Destructor Documentation

CPPCli::Preset::Preset ( VxSdk::IVxPreset vxPreset)

Constructor.

Implements the preset class.

Parameters
vxPresetThe vx preset.

Definition at line 6 of file Preset.cpp.

6  {
7  _preset = vxPreset;
8 }
VxSdk::IVxPreset * _preset
Definition: Preset.h:61
virtual CPPCli::Preset::~Preset ( )
inlinevirtual

Destructor.

Definition at line 24 of file Preset.h.

24  {
25  this->!Preset();
26  }
Preset(VxSdk::IVxPreset *vxPreset)
Constructor.
Definition: Preset.cpp:6
CPPCli::Preset::!Preset ( )

Finaliser.

Definition at line 10 of file Preset.cpp.

10  {
11  _preset->Delete();
12  _preset = nullptr;
13 }
VxSdk::IVxPreset * _preset
Definition: Preset.h:61
virtual VxResult::Value Delete() const =0

Member Data Documentation

VxSdk::IVxPreset* CPPCli::Preset::_preset
package

Definition at line 61 of file Preset.h.

Property Documentation

System:: String^ CPPCli::Preset::Description
get

Gets the friendly description of the preset.

The friendly description.

Definition at line 37 of file Preset.h.

int CPPCli::Preset::Index
get

Gets the unique numerical sequence value of this preset.

The unique numerical sequence value.

Definition at line 46 of file Preset.h.

System:: String^ CPPCli::Preset::Name
get

Gets the friendly name of the preset.

The friendly name.

Definition at line 55 of file Preset.h.


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