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;
168 return mCtxtHolder.getStatus();
178 virtual int init () {
return 0; }
191 virtual EXTRTMETHOD
int initBuffer (OSOCTET* pMsgBuf,
size_t msgBufLen);
198 mCtxtHolder.printErrorInfo ();
206 mCtxtHolder.resetErrorInfo ();
219 virtual EXTRTMETHOD
void setDiag (OSBOOL value=TRUE);
virtual void resetErrorInfo()
Definition: OSRTMsgBuf.h:205
virtual void printErrorInfo()
Definition: OSRTMsgBuf.h:197
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:167
Type mBufferType
Definition: OSRTMsgBuf.h:55
virtual void * getAppInfo()
Definition: OSRTMsgBuf.h:78
virtual void setAppInfo(void *)
Definition: OSRTMsgBuf.h:212
Definition: OSRTContext.h:310
virtual size_t getMsgLen()
Definition: OSRTMsgBuf.h:156
virtual const OSOCTET * getMsgPtr()
Definition: OSRTMsgBuf.h:149
virtual ~OSRTMessageBuffer()
Definition: OSRTMsgBuf.h:73
virtual char * getErrorInfo()
Definition: OSRTMsgBuf.h:113
Definition: OSRTContext.h:64
Definition: OSRTMsgBuf.h:46
virtual OSOCTET * getMsgCopy()
Definition: OSRTMsgBuf.h:141
virtual size_t getByteIndex()
Definition: OSRTMsgBuf.h:86
Definition: rtxContext.h:198
virtual int init()
Definition: OSRTMsgBuf.h:178
virtual OSCTXT * getCtxtPtr()
Definition: OSRTMsgBuf.h:102