23#ifndef _das_out_of_band_h_
24#define _das_out_of_band_h_
33typedef enum except_type {
34 DAS_EX_UNKNOWN, DAS_EX_NO_DATA, DAS_EX_SERVER_ERR, DAS_EX_QUERY_ERR
65typedef enum oob_type {OOB_EXCEPT, OOB_COMMENT} oob_t;
68typedef struct out_of_band {
70 void (*clean)(
struct out_of_band* pThis);
85typedef struct stream_exception {
117DAS_API
void OobExcept_set(
OobExcept* pThis, das_except_t nType,
const char* sMsg);
160typedef struct stream_comment{
Utility to assist with encode and decode operations.
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition defs.h:189
DAS_API const char * das_except_toStr(das_except_t nType, int nDasVer)
The stream name for an exception type.
DAS_API das_except_t das_except_fromStr(const char *sType)
The exception type for a stream name, from either stream version.
DAS_API void OutOfBand_clean(OutOfBand *pThis)
Clean up extra memory allocated when an out of band object is initialized.
Buffer class to handle accumulating byte streams.
Definition buffer.h:47
describes an exception that can live in a stream.
Definition oob.h:85
DAS_API DasErrCode OobExcept_encode3(OobExcept *pThis, DasBuf *pBuf)
Serialize an exception into a buffer in das3.0 format.
DAS_API const char * OobExcept_typeStr(const OobExcept *pThis)
Return the das3.0 wire type string for an exception (e.g.
DAS_API DasErrCode OobExcept_encode(OobExcept *pThis, DasBuf *pBuf)
Serialize an exception into a buffer in das2.2 format.
DAS_API void OobExcept_init(OobExcept *pThis)
Initialize an Exception Structure This only needs to be called once, the same structure will be reuse...
DAS_API DasErrCode OobExcept_decode(OobExcept *pThis, DasBuf *str)
Parse text data into a stream exception.
A container for Out-of-Band data.
Definition oob.h:68
DAS_API DasErrCode OutOfBand_decode(DasBuf *pBuf, OutOfBand **ppObjs, int *which)
Factory function to produce out of band objects from general data.