Defines the "Out of Band" objects in a stream. More...
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 DAS2_EXCEPT_NO_DATA_IN_INTERVAL "NoDataInInterval" |
Exception type for when no data is found in the requested interval.
| void OutOfBand_clean | ( | OutOfBand * | pThis | ) |
Clean up extra memory allocated when an out of band object is initialized.
| 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.
| pThis |
| void OobExcept_set | ( | OobExcept * | pThis, | |
| const char * | sType, | |||
| const char * | sMsg | |||
| ) |
Set an exception structure to a particular exception.
| pThis | A pointer to the exception to initialize | |
| sType | The type of exception. Usage of one of the strings:
| |
| 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.
| pThis |
1.6.1