28 #ifndef _ASN1CPPTYPES_H_ 29 #define _ASN1CPPTYPES_H_ 32 #if !defined(__SYMBIAN32__) && !defined(TELIUM) 40 #include "rtsrc/asn1CppEvtHndlr64.h" 54 #define ASN1RTLTHROW(stat) exit (-1) 61 #define ASN1THROW(ex) exit (-1) 71 #define ASN1CATCH(exType,ex,body) if (0) { body; } 155 #if !defined(__SYMBIAN32__) && !defined(_V2X) 204 virtual EXTRTMETHOD
int initBuffer (OSUNICHAR* unistr);
230 virtual OSBOOL
isA (Type ) {
return FALSE; }
279 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
293 inline OSOCTET* GetMsgCopy () {
return getMsgCopy(); }
294 inline const OSOCTET* GetMsgPtr() {
return getMsgPtr(); }
343 EXTRTMETHOD
int setMsgBuf
344 (OSRTMessageBufferIF& msgBuf, OSBOOL initBuf=FALSE);
356 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
368 EXTRTMETHOD
ASN1CType (OSRTMessageBufferIF& msgBuf);
413 return (!mpContext.
isNull ()) ? mpContext->
getPtr() : 0;
432 char* getErrorText (
char* textbuf = (
char*)0, OSSIZE bufsize = 0);
462 if (mpContext.
isNull ())
return 0;
463 return mpContext->
memAlloc (numocts);
478 if (mpContext.
isNull ())
return 0;
503 if (mpContext.
isNull ())
return 0;
555 return getContext()->setDiag (value);
566 virtual EXTRTMETHOD
int Encode ();
579 virtual EXTRTMETHOD
int Decode (OSBOOL free = FALSE);
607 virtual int DecodeFrom (OSRTMessageBufferIF& , OSBOOL free = TRUE)
648 numbits = _bs.numbits;
681 numbits = _bs.numbits;
705 size_t sz = _numbits / 8;
706 if ( _numbits % 8 > 0 ) sz += 1;
707 OSCRTLSAFEMEMCPY (data,
sizeof(data), _data, sz);
717 numbits = _bs.numbits;
718 OSCRTLSAFEMEMCPY (data,
sizeof(data), _bs.data,
sizeof(_bs.data));
724 #include "rtsrc/ASN1TOctStr64.h" 837 if (mpContext.
isNull()) mpContext = ctxt;
838 else if (ctxt == 0) mpContext = 0;
static EXTRTMETHOD void setErrorHandler(OSCTXT *pCtxt, Asn1ErrorHandler *pHandler)
Definition: asn1CppTypes.h:656
OSBOOL setDiag(OSBOOL value)
Definition: asn1CppTypes.h:554
Definition: asn1type.h:686
ASN1TBitStr32()
Definition: asn1CppTypes.h:694
ASN1TSeqExt()
Definition: asn1CppTypes.h:798
ASN1TDynBitStr()
Definition: asn1CppTypes.h:627
virtual ~ASN1CType()
Definition: asn1CppTypes.h:383
static EXTRTMETHOD void removeEventHandler(OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler)
void memFreeAll()
Definition: asn1CppTypes.h:488
Definition: asn1type.h:438
virtual void resetErrorInfo()
Definition: OSRTMsgBuf.h:200
ASN1TDynBitStr(ASN1DynBitStr &_bs)
Definition: asn1CppTypes.h:647
void * memAllocZ(size_t numocts)
Definition: OSRTContext.h:209
void memReset()
Definition: OSRTContext.h:252
ASN1TBitStr32(ASN1BitStr32 &_bs)
Definition: asn1CppTypes.h:716
virtual void setErrorHandler(Asn1ErrorHandler *pErrorHandler)
Definition: asn1CppTypes.h:264
virtual void printErrorInfo()
Definition: OSRTMsgBuf.h:192
Definition: asn1type.h:648
virtual OSRTCtxtPtr getContext()
Definition: OSRTMsgBuf.h:94
ASN1TBMPString()
Definition: asn1CppTypes.h:734
ASN1TOpenType()
Definition: asn1CppTypes.h:762
void rtxDListInit(OSRTDList *pList)
OSRTCtxtPtr getContext()
Definition: asn1CppTypes.h:404
Definition: rtxDList.h:64
void resetErrorInfo()
Definition: OSRTContext.h:268
int getStatus() const
Definition: asn1CppTypes.h:447
Definition: asn1CppTypes.h:866
virtual void removeEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:239
void memFreePtr(void *ptr)
Definition: asn1CppTypes.h:525
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:321
Asn1TObject()
Definition: asn1CppTypes.h:777
virtual void * getAppInfo()
Definition: asn1CppTypes.h:175
virtual int EncodeTo(OSRTMessageBufferIF &)
Definition: asn1CppTypes.h:591
Definition: asn1CppTypes.h:690
Definition: asn1CppTypes.h:102
Definition: asn1CppTypes.h:313
Definition: asn1CppTypes.h:808
virtual ~ASN1MessageBuffer()
Definition: asn1CppTypes.h:140
ASN1TUniversalString()
Definition: asn1CppTypes.h:748
virtual void resetErrorInfo()
Definition: asn1CppTypes.h:248
OSRTDListNode * rtxDListAppend(struct OSCTXT *pctxt, OSRTDList *pList, void *pData)
Definition: asn1type.h:776
virtual void addEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:150
Definition: asn1CppTypes.h:773
Definition: OSRTContext.h:310
ASN1TBitStr32(OSUINT32 _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:703
OSCTXT * getCtxtPtr()
Definition: asn1CppTypes.h:412
void * memAlloc(OSSIZE numocts)
Definition: asn1CppTypes.h:461
void * memAllocZ(OSSIZE numocts)
Definition: asn1CppTypes.h:477
void printErrorInfo()
Definition: asn1CppTypes.h:534
#define ASN_E_NOTPDU
Definition: asn1ErrCodes.h:123
Definition: asn1CppTypes.h:730
Definition: asn1CppTypes.h:623
void memReset()
Definition: asn1CppTypes.h:512
void setContext(OSRTContext *ctxt)
Definition: asn1CppTypes.h:836
virtual int DecodeFrom(OSRTMessageBufferIF &, OSBOOL free=TRUE)
Definition: asn1CppTypes.h:607
void append(OSRTDList &llist, void *pdata)
Definition: asn1CppTypes.h:393
virtual size_t getMsgLen()
Definition: asn1CppTypes.h:180
Definition: asn1CppTypes.h:852
OSRTMessageBufferIF * mpMsgBuf
Definition: asn1CppTypes.h:327
virtual int setStatus(int stat)
Definition: asn1CppTypes.h:130
virtual const OSOCTET * getMsgPtr()
Definition: OSRTMsgBuf.h:149
ASN1TDynBitStr64(ASN1DynBitStr64 &_bs)
Definition: asn1CppTypes.h:680
Definition: asn1type.h:698
#define OS_UNUSED_ARG(arg)
Definition: asn1CppEvtHndlr.h:55
Definition: asn1type.h:432
void memFreeAll()
Definition: OSRTContext.h:219
Definition: rtxMemBuf.h:48
OSSIZE rtxCtxtGetBitOffset(OSCTXT *pctxt)
Definition: OSRTContext.h:65
Definition: OSRTMsgBuf.h:46
void printErrorInfo()
Definition: OSRTContext.h:260
Definition: asn1CppTypes.h:758
#define RTERR_NOMEM
Definition: rtxErrCodes.h:135
class EXTRTCLASS ASN1MessageBuffer
Definition: asn1CppEvtHndlr.h:537
virtual OSOCTET * getMsgCopy()
Definition: OSRTMsgBuf.h:141
OSCTXT * getPtr()
Definition: OSRTContext.h:110
Definition: asn1type.h:425
void resetError()
Definition: asn1CppTypes.h:543
#define RTERR_NOTSUPP
Definition: rtxErrCodes.h:528
Definition: asn1CppEvtHndlr.h:547
ASN1TDynBitStr64(OSSIZE _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:669
static EXTRTMETHOD void addEventHandler(OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler)
void memFreePtr(void *ptr)
Definition: OSRTContext.h:231
ASN1TDynBitStr(OSUINT32 _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:636
OSBOOL isNull() const
Definition: OSRTContext.h:394
Definition: asn1CppEvtHndlr.h:67
virtual ~ASN1TPDU()
Definition: asn1CppTypes.h:845
virtual EXTRTMETHOD int initBuffer(OSOCTET *pMsgBuf, size_t msgBufLen)
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:816
Definition: rtxContext.h:185
Definition: asn1type.h:658
#define LOG_RTERR(pctxt, stat)
Definition: rtxError.h:79
ASN1TDynBitStr64()
Definition: asn1CppTypes.h:660
int getStatus() const
Definition: OSRTContext.h:125
virtual OSCTXT * getCtxtPtr()
Definition: OSRTMsgBuf.h:102
virtual OSBOOL isA(Type)
Definition: asn1CppTypes.h:230
void * memRealloc(void *ptr, OSSIZE numocts)
Definition: asn1CppTypes.h:502
Definition: asn1CppTypes.h:794
Definition: asn1CppTypes.h:744
ASN1TPDUSeqOfList()
Definition: asn1CppTypes.h:870
size_t getBitOffset()
Definition: asn1CppTypes.h:286
void * memRealloc(void *ptr, size_t numocts)
Definition: OSRTContext.h:244
void * memAlloc(size_t numocts)
Definition: OSRTContext.h:196
ASN1TSeqOfList()
Definition: asn1CppTypes.h:856
virtual void setAppInfo(void *)
Definition: asn1CppTypes.h:255