das2/oob.h File Reference

Defines the "Out of Band" objects in a stream. More...


Detailed Description

Defines the "Out of Band" objects in a stream.

These are comments and exceptions

#include <das2/util.h>
#include <das2/buffer.h>

Go to the source code of this file.

Data Structures

struct  OutOfBand
 A container for Out-of-Band data. More...
struct  OobExcept
 describes an exception that can live in a stream. More...
struct  OobComment
 describes human-consumable messages that exist on the stream. More...

Defines

#define EXCEPTION_UNTYPED   ""
 Generic untyped exception.
#define DAS2_EXCEPT_NO_DATA_IN_INTERVAL   "NoDataInInterval"
 Exception type for when no data is found in the requested interval.

Functions

void OutOfBand_clean (OutOfBand *pThis)
 Clean up extra memory allocated when an out of band object is initialized.
void OobExcept_init (OobExcept *pThis)
 Initialize an Exception Structure This only needs to be called once, the same structure will be reused each time OutOfBand_decode() is called.
void OobExcept_set (OobExcept *pThis, const char *sType, const char *sMsg)
 Set an exception structure to a particular exception.
void OobComment_init (OobComment *pThis)
 Initialize an Exception Structure This only needs to be called once, the same structure will be reused each time OutOfBand_decode() is called.

Define Documentation

#define DAS2_EXCEPT_NO_DATA_IN_INTERVAL   "NoDataInInterval"

Exception type for when no data is found in the requested interval.


Function Documentation

void OutOfBand_clean ( OutOfBand pThis  ) 

Clean up extra memory allocated when an out of band object is initialized.

Parameters:
pThis the out of band item to clean up.
void OobExcept_init ( OobExcept pThis  ) 

Initialize an Exception Structure This only needs to be called once, the same structure will be reused each time OutOfBand_decode() is called.

Memory is not re-allocated for each call, it only expands as needed.

Parameters:
pThis 
void OobExcept_set ( OobExcept pThis,
const char *  sType,
const char *  sMsg 
)

Set an exception structure to a particular exception.

Parameters:
pThis A pointer to the exception to initialize
sType The type of exception. Usage of one of the strings:

  • DAS2_EXCEPT_NO_DATA_IN_INTERVAL
  • DAS2_EXCEPT_ILLEGAL_ARGUMENT
  • DAS2_EXCEPT_SERVER_ERROR is recommended.
sMsg The message for the exception, this is a human readable string.
void OobComment_init ( OobComment pThis  ) 

Initialize an Exception Structure This only needs to be called once, the same structure will be reused each time OutOfBand_decode() is called.

Memory is not re-allocated for each call, it only expands as needed.

Parameters:
pThis 
 All Data Structures Files Functions Variables Typedefs Enumerations Defines

Generated on 11 Sep 2016 for Das2 Stream Utilities by  doxygen 1.6.1