AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
Helper class for writing data to SDS Scalar Arrays.
This is Data helper class for the ArrayAccess methods of the sds::Id class. The main point here is to set up a relationship between a primitive data type and the relevant underlying SDS primitive types (SdsCodeType) of the SDS scalar array we wish to access.
The user creates an object of this type, specifying the data type of the primitive item. They then call drama::sds::Id::ArrayAccess() with the address of this item.
From that point, you can use the methods of this object to access the data.
The type specified for the template must be one of the SDS primitive data types, being double, float, short, INT32, INT64, unsigned short, UINT32, UINT64, signed char, or unsigned char.
T | The type of the SDS primitive type we are accessing, one of double, float, short, INT32, INT64, unsigned short, UINT32, UINT64, signed char, or unsigned char. |
#include "sdsarray.hh"
Public Member Functions | |
ArrayWriteHelper () | |
Create a drama::sds::ArrayWriteHelper object. | |
SdsCodeType | Code () const |
Return the SDS type code of the item being accessed. | |
T * | DataAddress () |
Access the data directly. | |
T & | operator[] (const unsigned long index) |
SDS array subscript operator - non-const version. | |
T const & | operator[] (const unsigned long index) const |
SDS array subscript operator - const version. | |
unsigned long | Size () const |
Return the number of elements in the array. | |
Protected Member Functions | |
T * | GetDataAddress () |
Return the address of the data. | |
const T * | GetDataAddress () const |
Return the address of the data. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8