28 #ifndef _OSRTMSGBUF_H_ 29 #define _OSRTMSGBUF_H_ 31 #include "rtxsrc/OSRTCtxtHolder.h" 32 #include "rtxsrc/OSRTMsgBufIF.h" 49 OSRTCtxtHolder mCtxtHolder;
87 return getCtxtPtr()->buffer.byteIndex;
95 return mCtxtHolder.getContext ();
103 return mCtxtHolder.getCtxtPtr ();
114 return mCtxtHolder.getErrorInfo ();
134 return mCtxtHolder.getErrorInfo (pBuf, bufSize);
150 return getCtxtPtr()->buffer.data;
163 return mCtxtHolder.getStatus();
173 virtual int init () {
return 0; }
186 virtual EXTRTMETHOD
int initBuffer (OSOCTET* pMsgBuf,
size_t msgBufLen);
193 mCtxtHolder.printErrorInfo ();
201 mCtxtHolder.resetErrorInfo ();
214 virtual EXTRTMETHOD
void setDiag (OSBOOL value=TRUE);
virtual void resetErrorInfo()
Definition: OSRTMsgBuf.h:200
virtual void printErrorInfo()
Definition: OSRTMsgBuf.h:192
virtual char * getErrorInfo(char *pBuf, size_t &bufSize)
Definition: OSRTMsgBuf.h:133
virtual OSRTCtxtPtr getContext()
Definition: OSRTMsgBuf.h:94
int getStatus() const
Definition: OSRTMsgBuf.h:162
Type mBufferType
Definition: OSRTMsgBuf.h:55
virtual void * getAppInfo()
Definition: OSRTMsgBuf.h:78
virtual void setAppInfo(void *)
Definition: OSRTMsgBuf.h:207
Definition: OSRTContext.h:310
virtual const OSOCTET * getMsgPtr()
Definition: OSRTMsgBuf.h:149
virtual ~OSRTMessageBuffer()
Definition: OSRTMsgBuf.h:73
virtual char * getErrorInfo()
Definition: OSRTMsgBuf.h:113
Definition: OSRTContext.h:65
Definition: OSRTMsgBuf.h:46
virtual OSOCTET * getMsgCopy()
Definition: OSRTMsgBuf.h:141
virtual size_t getByteIndex()
Definition: OSRTMsgBuf.h:86
Definition: rtxContext.h:185
virtual int init()
Definition: OSRTMsgBuf.h:173
virtual OSCTXT * getCtxtPtr()
Definition: OSRTMsgBuf.h:102