VideoXpert SDK  2.0
A software development kit for third party vendors to integrate with the VideoXpert platform
VxSdk::VxNewDevice Struct Reference

Represents a new device to be created. More...

#include <VxNewDevice.h>

Public Member Functions

 VxNewDevice ()
 Initializes a new instance of the VxNewDevice struct. More...
 
 VxNewDevice (const VxNewDevice &ref)
 Initializes a new instance of the VxNewDevice struct. More...
 
 ~VxNewDevice ()
 Finalizes an instance of the VxNewDevice class. More...
 
void Clear ()
 Clears this instance. More...
 

Public Attributes

bool shouldAutoCommission
 True to have this device automatically commissioned when created. More...
 
char dataStorageId [64]
 The data storage id to assign this device to using the driver specified by driverType. More...
 
char driverType [64]
 The type identifier of the driver to use for the device when assigning it to a data storage. More...
 
char id [64]
 The id of this device More...
 
char ip [64]
 The primary IP address. The IP address must be unique for this type of device. More...
 
char name [64]
 The friendly name of the device. More...
 
char password [64]
 The account password used to communicate with the device, if any. More...
 
char username [64]
 The account username used to communicate with the device, if any. More...
 
VxDeviceType::Value type
 The particular type of the device. More...
 

Detailed Description

Represents a new device to be created.

Definition at line 12 of file VxNewDevice.h.

Constructor & Destructor Documentation

VxSdk::VxNewDevice::VxNewDevice ( )
inline

Initializes a new instance of the VxNewDevice struct.

Definition at line 17 of file VxNewDevice.h.

17  {
18  Clear();
19  }
void Clear()
Clears this instance.
Definition: VxNewDevice.h:47
VxSdk::VxNewDevice::VxNewDevice ( const VxNewDevice ref)
inline

Initializes a new instance of the VxNewDevice struct.

Parameters
refThe reference.

Definition at line 25 of file VxNewDevice.h.

25  {
26  this->shouldAutoCommission = ref.shouldAutoCommission;
27  Utilities::StrCopySafe(this->dataStorageId, ref.dataStorageId);
28  Utilities::StrCopySafe(this->driverType, ref.driverType);
29  Utilities::StrCopySafe(this->id, ref.id);
30  Utilities::StrCopySafe(this->ip, ref.ip);
31  Utilities::StrCopySafe(this->name, ref.name);
32  Utilities::StrCopySafe(this->password, ref.password);
33  Utilities::StrCopySafe(this->username, ref.username);
34  this->type = ref.type;
35  }
char name[64]
The friendly name of the device.
Definition: VxNewDevice.h:83
char password[64]
The account password used to communicate with the device, if any.
Definition: VxNewDevice.h:87
char dataStorageId[64]
The data storage id to assign this device to using the driver specified by driverType.
Definition: VxNewDevice.h:67
char driverType[64]
The type identifier of the driver to use for the device when assigning it to a data storage...
Definition: VxNewDevice.h:71
static void StrCopySafe(char(&dst)[dstSize], const char *src)
Performs a safe string copy.
Definition: VxUtilities.h:15
char ip[64]
The primary IP address. The IP address must be unique for this type of device.
Definition: VxNewDevice.h:79
VxDeviceType::Value type
The particular type of the device.
Definition: VxNewDevice.h:95
char username[64]
The account username used to communicate with the device, if any.
Definition: VxNewDevice.h:91
bool shouldAutoCommission
True to have this device automatically commissioned when created.
Definition: VxNewDevice.h:63
VxSdk::VxNewDevice::~VxNewDevice ( )
inline

Finalizes an instance of the VxNewDevice class.

Definition at line 40 of file VxNewDevice.h.

40  {
41  Clear();
42  }
void Clear()
Clears this instance.
Definition: VxNewDevice.h:47

Member Function Documentation

void VxSdk::VxNewDevice::Clear ( )
inline

Clears this instance.

Definition at line 47 of file VxNewDevice.h.

47  {
48  shouldAutoCommission = false;
50  VxZeroArray(this->driverType);
51  VxZeroArray(this->id);
52  VxZeroArray(this->ip);
53  VxZeroArray(this->name);
54  VxZeroArray(this->password);
55  VxZeroArray(this->username);
57  }
char name[64]
The friendly name of the device.
Definition: VxNewDevice.h:83
#define VxZeroArray(src)
Definition: VxMacros.h:25
char password[64]
The account password used to communicate with the device, if any.
Definition: VxNewDevice.h:87
char dataStorageId[64]
The data storage id to assign this device to using the driver specified by driverType.
Definition: VxNewDevice.h:67
char driverType[64]
The type identifier of the driver to use for the device when assigning it to a data storage...
Definition: VxNewDevice.h:71
char ip[64]
The primary IP address. The IP address must be unique for this type of device.
Definition: VxNewDevice.h:79
VxDeviceType::Value type
The particular type of the device.
Definition: VxNewDevice.h:95
An error or unknown value was returned.
Definition: VxPrimitives.h:341
char username[64]
The account username used to communicate with the device, if any.
Definition: VxNewDevice.h:91
bool shouldAutoCommission
True to have this device automatically commissioned when created.
Definition: VxNewDevice.h:63

Member Data Documentation

char VxSdk::VxNewDevice::dataStorageId[64]

The data storage id to assign this device to using the driver specified by driverType.

Definition at line 67 of file VxNewDevice.h.

char VxSdk::VxNewDevice::driverType[64]

The type identifier of the driver to use for the device when assigning it to a data storage.

Definition at line 71 of file VxNewDevice.h.

char VxSdk::VxNewDevice::id[64]

The id of this device

Definition at line 75 of file VxNewDevice.h.

char VxSdk::VxNewDevice::ip[64]

The primary IP address. The IP address must be unique for this type of device.

Definition at line 79 of file VxNewDevice.h.

char VxSdk::VxNewDevice::name[64]

The friendly name of the device.

Definition at line 83 of file VxNewDevice.h.

char VxSdk::VxNewDevice::password[64]

The account password used to communicate with the device, if any.

Definition at line 87 of file VxNewDevice.h.

bool VxSdk::VxNewDevice::shouldAutoCommission

True to have this device automatically commissioned when created.

Definition at line 63 of file VxNewDevice.h.

VxDeviceType::Value VxSdk::VxNewDevice::type

The particular type of the device.

Definition at line 95 of file VxNewDevice.h.

char VxSdk::VxNewDevice::username[64]

The account username used to communicate with the device, if any.

Definition at line 91 of file VxNewDevice.h.


The documentation for this struct was generated from the following file: