NetOceanDirect 3.1.3
OceanDirect .NET API
NetOceanDirect::Shutter Class Reference

#include <Shutter.h>

Inherits NetOceanDirect::ManagedObject< ShutterAPI >.

Public Member Functions

 Shutter (ShutterAPI *instance)
 
virtual ~Shutter ()
 
bool getShutterState (long deviceID, int% errorCode)
 
void setShutterOpen (long deviceID, int% errorCode, bool opened)
 
- Public Member Functions inherited from NetOceanDirect::ManagedObject< ShutterAPI >
 ManagedObject (ShutterAPI *instance)
 
 !ManagedObject ()
 
virtual ~ManagedObject ()
 
ShutterAPI * GetInstance ()
 

Static Public Member Functions

static Shutter getInstance ()
 

Protected Member Functions

 Shutter ()
 

Static Protected Attributes

static Shutter shutter
 

Additional Inherited Members

- Protected Attributes inherited from NetOceanDirect::ManagedObject< ShutterAPI >
ShutterAPI * m_Instance
 

Constructor & Destructor Documentation

◆ Shutter() [1/2]

Shutter::Shutter ( )
protected

◆ Shutter() [2/2]

Shutter::Shutter ( ShutterAPI * instance)

◆ ~Shutter()

virtual NetOceanDirect::Shutter::~Shutter ( )
inlinevirtual

Member Function Documentation

◆ getInstance()

Shutter Shutter::getInstance ( )
static

◆ getShutterState()

bool Shutter::getShutterState ( long deviceID,
int% errorCode )

Get the shutter on whether it's open or closed.

See also
setShutterOpen()
Parameters
[in]deviceIDthe ID of the device returned by getDeviceIDs.
[out]errorCodea code indicating the result of the operation: ERROR_SUCCESS on success; ERROR_NO_DEVICE if the device does not exist; ERROR_FEATURE_NOT_FOUND the feature is not enabled on the specified device; ERROR_TRANSFER_ERROR the device protocol for the feature could not be found.
Returns
Return true if the shutter is open otherwise it's false.

◆ setShutterOpen()

void Shutter::setShutterOpen ( long deviceID,
int% errorCode,
bool opened )

Set the shutter to open or closed.

See also
getShutterState()
Parameters
[in]deviceIDthe ID of the device returned by getDeviceIDs.
[out]errorCodea code indicating the result of the operation: ERROR_SUCCESS on success; ERROR_NO_DEVICE if the device does not exist; ERROR_FEATURE_NOT_FOUND the feature is not enabled on the specified device; ERROR_TRANSFER_ERROR the device protocol for the feature could not be found.
[in]openedtrue to open the shutter false to close the shutter.

Member Data Documentation

◆ shutter

Shutter NetOceanDirect::Shutter::shutter
staticprotected

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