rasdaman complete source
Public Member Functions | Public Attributes | List of all members
rnp::RnpParameter Struct Reference

#include <rnprotocol.hh>

Public Member Functions

RnpParametergetNextParameter () const throw ()
 Returns a pointer to the next parameter. More...
 
void * getData () const throw ()
 Returns a pointer to the parameter data. More...
 
RnpQuark getDataLength () const throw ()
 Returns the length of the parameter data. More...
 
void changeToHostEndianness () throw ()
 
void changeToPartnerEndianness () throw ()
 
RnpQuark computeTotalAlignedLength () throw ()
 
RnpQuark getPaddLength () const throw ()
 

Public Attributes

RnpQuark paramType
 The logical type of the parameter. Server dependent. More...
 
RnpQuark dataType
 The data type of the parameter. One of Rnp::DataType. More...
 
RnpQuark dataLength
 The length of the data. More...
 
RnpQuark totalLength
 Total length of teh parameter, header + data + alignment bytes. More...
 

Detailed Description

The header of parameters. Size is 16. The parameter has a header like this and then the data

Member Function Documentation

void rnp::RnpParameter::changeToHostEndianness ( )
throw (
)

Changes the endianness of the parameter. Since there is no info about the current endianness, be carefull when you use it. It also changes the endianness of the data, except when it is opaque data.

void rnp::RnpParameter::changeToPartnerEndianness ( )
throw (
)
RnpQuark rnp::RnpParameter::computeTotalAlignedLength ( )
throw (
)
void* rnp::RnpParameter::getData ( ) const
throw (
)

Returns a pointer to the parameter data.

RnpQuark rnp::RnpParameter::getDataLength ( ) const
throw (
)

Returns the length of the parameter data.

RnpParameter* rnp::RnpParameter::getNextParameter ( ) const
throw (
)

Returns a pointer to the next parameter.

RnpQuark rnp::RnpParameter::getPaddLength ( ) const
throw (
)

Member Data Documentation

RnpQuark rnp::RnpParameter::dataLength

The length of the data.

RnpQuark rnp::RnpParameter::dataType

The data type of the parameter. One of Rnp::DataType.

RnpQuark rnp::RnpParameter::paramType

The logical type of the parameter. Server dependent.

RnpQuark rnp::RnpParameter::totalLength

Total length of teh parameter, header + data + alignment bytes.


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