47 #ifndef _OSRTCONTEXT_H_ 48 #define _OSRTCONTEXT_H_ 57 #pragma warning(disable: 4514) 98 EXTRTMETHOD OSRTContext ();
103 virtual EXTRTMETHOD ~OSRTContext ();
112 inline const OSCTXT* getPtr ()
const {
return &mCtxt; }
117 EXTRTMETHOD OSUINT32 getRefCount();
138 EXTRTMETHOD
void _ref();
143 EXTRTMETHOD
void _unref();
153 EXTRTMETHOD
char* getErrorInfo ();
167 EXTRTMETHOD
char* getErrorInfo (
size_t* pBufSize);
185 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);
416 #endif // _OSRTCONTEXT_H_ #define rtxMemAllocZ(pctxt, nbytes)
Definition: rtxMemory.h:326
void * memAllocZ(size_t numocts)
Definition: OSRTContext.h:209
void memReset()
Definition: OSRTContext.h:252
OSCTXT mCtxt
Definition: OSRTContext.h:74
OSBOOL isInitialized()
Definition: OSRTContext.h:133
void resetErrorInfo()
Definition: OSRTContext.h:268
void rtxErrPrint(OSCTXT *pctxt)
void rtxMemReset(OSCTXT *pctxt)
int operator==(const ASN1OBJID &lhs, const ASN1OBJID &rhs)
OSBOOL mbInitialized
Definition: OSRTContext.h:84
#define rtxMemAlloc(pctxt, nbytes)
Definition: rtxMemory.h:301
virtual ~OSRTCtxtPtr()
Definition: OSRTContext.h:344
Definition: OSRTContext.h:310
int rtxErrGetLastError(const OSCTXT *pctxt)
int mStatus
Definition: OSRTContext.h:91
#define rtxMemRealloc(pctxt, mem_p, nbytes)
Definition: rtxMemory.h:360
void memFreeAll()
Definition: OSRTContext.h:219
OSCTXT * getCtxtPtr()
Definition: OSRTContext.h:400
Definition: OSRTContext.h:65
OSUINT32 mCount
Definition: OSRTContext.h:79
void printErrorInfo()
Definition: OSRTContext.h:260
OSBOOL setDiag(OSBOOL value=TRUE)
Definition: OSRTContext.h:278
OSCTXT * getPtr()
Definition: OSRTContext.h:110
int rtxErrReset(OSCTXT *pctxt)
void memFreePtr(void *ptr)
Definition: OSRTContext.h:231
OSBOOL isNull() const
Definition: OSRTContext.h:394
EXTRTMETHOD void _unref()
Definition: rtxContext.h:185
#define rtxMemFreePtr(pctxt, mem_p)
Definition: rtxMemory.h:393
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:125
void rtxMemFree(OSCTXT *pctxt)
void * memRealloc(void *ptr, size_t numocts)
Definition: OSRTContext.h:244
void * memAlloc(size_t numocts)
Definition: OSRTContext.h:196
OSRTCtxtPtr(OSRTContext *rf=0)
Definition: OSRTContext.h:325