46 #ifndef _OSRTCONTEXT_H_ 47 #define _OSRTCONTEXT_H_ 56 #pragma warning(disable: 4514) 97 EXTRTMETHOD OSRTContext ();
102 virtual EXTRTMETHOD ~OSRTContext ();
111 inline const OSCTXT* getPtr ()
const {
return &mCtxt; }
116 EXTRTMETHOD OSUINT32 getRefCount();
137 EXTRTMETHOD
void _ref();
142 EXTRTMETHOD
void _unref();
152 EXTRTMETHOD
char* getErrorInfo ();
166 EXTRTMETHOD
char* getErrorInfo (
size_t* pBufSize);
184 EXTRTMETHOD
char* getErrorInfo (
char* pBuf,
size_t& bufSize);
292 virtual EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key,
size_t keylen);
300 int setStatus (
int stat);
326 if (mPointer != 0) mPointer->
_ref();
336 if (mPointer != 0) mPointer->
_ref();
355 if (mPointer != 0) mPointer->
_unref();
357 if (mPointer != 0) mPointer->
_ref();
366 if (mPointer != 0) mPointer->
_unref();
368 if (mPointer != 0) mPointer->
_ref();
376 operator const OSRTContext* ()
const {
return mPointer; }
382 const OSRTContext* operator -> ()
const {
return mPointer; }
388 return (mPointer == o);
394 inline OSBOOL
isNull()
const {
return (mPointer == 0); }
408 EXTERNRT
void*
operator new (
size_t nbytes,
OSCTXT* pctxt);
414 EXTERNRT
void operator delete (
void* pmem,
OSCTXT* pctxt);
436 #endif // _OSRTCONTEXT_H_ #define rtxMemAllocZ(pctxt, nbytes)
Definition: rtxMemory.h:375
void * memAllocZ(size_t numocts)
Definition: OSRTContext.h:208
void memReset()
Definition: OSRTContext.h:251
OSCTXT mCtxt
Definition: OSRTContext.h:73
const OSUTF8CHAR * rtxCtxtPopElemName(OSCTXT *pctxt)
OSBOOL isInitialized()
Definition: OSRTContext.h:132
void resetErrorInfo()
Definition: OSRTContext.h:267
void rtxErrPrint(OSCTXT *pctxt)
void rtxMemReset(OSCTXT *pctxt)
int operator==(const ASN1OBJID &lhs, const ASN1OBJID &rhs)
OSBOOL mbInitialized
Definition: OSRTContext.h:83
int rtxCtxtPushElemName(OSCTXT *pctxt, const OSUTF8CHAR *elemName)
#define rtxMemAlloc(pctxt, nbytes)
Definition: rtxMemory.h:350
virtual ~OSRTCtxtPtr()
Definition: OSRTContext.h:344
Definition: OSRTContext.h:310
int rtxErrGetLastError(const OSCTXT *pctxt)
int mStatus
Definition: OSRTContext.h:90
#define rtxMemRealloc(pctxt, mem_p, nbytes)
Definition: rtxMemory.h:409
void memFreeAll()
Definition: OSRTContext.h:218
OSCTXT * getCtxtPtr()
Definition: OSRTContext.h:400
Definition: OSRTContext.h:64
OSUINT32 mCount
Definition: OSRTContext.h:78
void printErrorInfo()
Definition: OSRTContext.h:259
OSBOOL setDiag(OSBOOL value=TRUE)
Definition: OSRTContext.h:278
OSCTXT * getPtr()
Definition: OSRTContext.h:109
int rtxErrReset(OSCTXT *pctxt)
void memFreePtr(void *ptr)
Definition: OSRTContext.h:230
OSBOOL isNull() const
Definition: OSRTContext.h:394
EXTRTMETHOD void _unref()
Definition: rtxContext.h:198
#define rtxMemFreePtr(pctxt, mem_p)
Definition: rtxMemory.h:442
OSRTCtxtPtr(const OSRTCtxtPtr &o)
Definition: OSRTContext.h:335
OSRTContext * mPointer
Definition: OSRTContext.h:316
OSBOOL rtxSetDiag(OSCTXT *pctxt, OSBOOL value)
int getStatus() const
Definition: OSRTContext.h:124
void rtxMemFree(OSCTXT *pctxt)
Definition: OSRTContext.h:421
void * memRealloc(void *ptr, size_t numocts)
Definition: OSRTContext.h:243
void * memAlloc(size_t numocts)
Definition: OSRTContext.h:195
OSRTCtxtPtr(OSRTContext *rf=0)
Definition: OSRTContext.h:325