OceanDirectLighthouseC++  3.1.1
OceanDirect Lighthouse C++/C API
oceandirect::api::DataBufferAPI Class Reference

Public Member Functions

virtual void clearBuffer (long deviceID, int *errorCode)
 
virtual unsigned long getBufferCapacity (long deviceID, int *errorCode)
 
virtual unsigned long getBufferCapacityMaximum (long deviceID, int *errorCode)
 
virtual unsigned long getBufferCapacityMinimum (long deviceID, int *errorCode)
 
virtual bool getBufferEnabled (long deviceID, int *errorCode)
 
virtual unsigned long getNumberOfElements (long deviceID, int *errorCode)
 
virtual void setBufferCapacity (long deviceID, int *errorCode, unsigned long capacity)
 
virtual void setBufferEnabled (long deviceID, int *errorCode, bool enabled)
 

Static Public Member Functions

static DataBufferAPIgetInstance ()
 
static void shutdown ()
 

Static Protected Attributes

static DataBufferAPIinstance
 

Member Function Documentation

◆ clearBuffer()

virtual void oceandirect::api::DataBufferAPI::clearBuffer ( long  deviceID,
int *  errorCode 
)
virtual

Clear the device buffer.

Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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.

◆ getBufferCapacity()

virtual unsigned long oceandirect::api::DataBufferAPI::getBufferCapacity ( long  deviceID,
int *  errorCode 
)
virtual

Get the current buffer capacity.

See also
setBufferCapacity()
Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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
the current buffer capacity.

◆ getBufferCapacityMaximum()

virtual unsigned long oceandirect::api::DataBufferAPI::getBufferCapacityMaximum ( long  deviceID,
int *  errorCode 
)
virtual

Get the maximum current buffer capacity.

Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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
the maximum buffer capacity.

◆ getBufferCapacityMinimum()

virtual unsigned long oceandirect::api::DataBufferAPI::getBufferCapacityMinimum ( long  deviceID,
int *  errorCode 
)
virtual

Get the minimum current buffer capacity.

Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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
the minimum buffer capacity.

◆ getBufferEnabled()

virtual bool oceandirect::api::DataBufferAPI::getBufferEnabled ( long  deviceID,
int *  errorCode 
)
virtual

Determine if buffering is enabled or disabled.

See also
setBufferEnabled()
Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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
true if buffering is enabled, false otherwise.

◆ getNumberOfElements()

virtual unsigned long oceandirect::api::DataBufferAPI::getNumberOfElements ( long  deviceID,
int *  errorCode 
)
virtual
Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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.

◆ setBufferCapacity()

virtual void oceandirect::api::DataBufferAPI::setBufferCapacity ( long  deviceID,
int *  errorCode,
unsigned long  capacity 
)
virtual

Set the current buffer capacity.

See also
getBufferCapacity()
Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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.
capacitythe desired buffer capacity.

◆ setBufferEnabled()

virtual void oceandirect::api::DataBufferAPI::setBufferEnabled ( long  deviceID,
int *  errorCode,
bool  enabled 
)
virtual

Enable or disable buffering.

See also
getBufferEnabled()
Parameters
deviceIDthe ID of the device returned by getDeviceIDs.
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.
enabledtrue to enable buffering, false to disable buffering.

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