![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The PtzLock class represents a lock for a ptz controller. More...
#include <PtzLock.h>
Public Member Functions | |
| PtzLock (VxSdk::IVxPtzLock *vxPtzLock) | |
| Constructor. More... | |
| virtual | ~PtzLock () |
| Destructor. More... | |
| !PtzLock () | |
| Finaliser. More... | |
| Results::Value | Lock (int expireTime) |
| Lock the ptz control. More... | |
| Results::Value | Refresh () |
| Update this instances properties. More... | |
| Results::Value | Unlock () |
| Unlock the ptz control. More... | |
Package Functions | |
| int | _GetExpireTime () |
| bool | _GetLockState () |
| System::String^ | _GetOwner () |
Package Attributes | |
| VxSdk::IVxPtzLock * | _ptzLock |
Properties | |
| int | ExpireTime [get] |
| Gets the amount of time (in seconds) that the ptz lock will be held. More... | |
| System::String^ | Id [get] |
| Gets the unique identifier of the ptz lock. More... | |
| bool | IsLocked [get] |
| Gets a value indicating whether the lock is active. More... | |
| System::String^ | Owner [get] |
| Gets the name of the user that has locked the ptz controller, if any. More... | |
| CPPCli::PtzLock::PtzLock | ( | VxSdk::IVxPtzLock * | vxPtzLock | ) |
Constructor.
Implements the ptz lock class.
| vxPtzLock | The ptz lock. |
Definition at line 6 of file PtzLock.cpp.
|
inlinevirtual |
| CPPCli::PtzLock::!PtzLock | ( | ) |
|
package |
Definition at line 31 of file PtzLock.cpp.
|
package |
Definition at line 38 of file PtzLock.cpp.
|
package |
Definition at line 45 of file PtzLock.cpp.
| CPPCli::Results::Value CPPCli::PtzLock::Lock | ( | int | expireTime | ) |
Lock the ptz control.
| expireTime | The amount of time (in seconds) that the ptz lock will be held. The lock will not expire until it is explicitly unlocked if set to 0. |
Definition at line 15 of file PtzLock.cpp.
| CPPCli::Results::Value CPPCli::PtzLock::Refresh | ( | ) |
Update this instances properties.
Definition at line 21 of file PtzLock.cpp.
| CPPCli::Results::Value CPPCli::PtzLock::Unlock | ( | ) |
Unlock the ptz control.
Definition at line 25 of file PtzLock.cpp.
|
package |
|
get |
|
get |
|
get |
|
get |