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) 199 virtual EXTRTMETHOD
int initBuffer (OSUNICHAR* unistr);
225 virtual OSBOOL
isA (Type ) {
return FALSE; }
274 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
288 inline OSOCTET* GetMsgCopy () {
return getMsgCopy(); }
289 inline const OSOCTET* GetMsgPtr() {
return getMsgPtr(); }
338 EXTRTMETHOD
int setMsgBuf
339 (OSRTMessageBufferIF& msgBuf, OSBOOL initBuf=FALSE);
351 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
363 EXTRTMETHOD
ASN1CType (OSRTMessageBufferIF& msgBuf);
408 return (!mpContext.
isNull ()) ? mpContext->
getPtr() : 0;
427 char* getErrorText (
char* textbuf = (
char*)0, OSSIZE bufsize = 0);
457 if (mpContext.
isNull ())
return 0;
458 return mpContext->
memAlloc (numocts);
473 if (mpContext.
isNull ())
return 0;
498 if (mpContext.
isNull ())
return 0;
550 return getContext()->setDiag (value);
561 virtual EXTRTMETHOD
int Encode ();
574 virtual EXTRTMETHOD
int Decode (OSBOOL free = FALSE);
602 virtual int DecodeFrom (OSRTMessageBufferIF& , OSBOOL free = TRUE)
653 numbits = _bs.numbits;
686 numbits = _bs.numbits;
710 size_t sz = _numbits / 8;
711 if ( _numbits % 8 > 0 ) sz += 1;
712 OSCRTLSAFEMEMCPY (data,
sizeof(data), _data, sz);
722 numbits = _bs.numbits;
723 OSCRTLSAFEMEMCPY (data,
sizeof(data), _bs.data,
sizeof(_bs.data));
729 #include "rtsrc/ASN1TOctStr64.h" 842 if (mpContext.
isNull()) mpContext = ctxt;
843 else if (ctxt == 0) mpContext = 0;
static EXTRTMETHOD void setErrorHandler(OSCTXT *pCtxt, Asn1ErrorHandler *pHandler)
Definition: asn1CppTypes.h:661
OSBOOL setDiag(OSBOOL value)
Definition: asn1CppTypes.h:549
Definition: asn1type.h:946
ASN1TBitStr32()
Definition: asn1CppTypes.h:699
ASN1TSeqExt()
Definition: asn1CppTypes.h:803
ASN1TDynBitStr()
Definition: asn1CppTypes.h:632
virtual ~ASN1CType()
Definition: asn1CppTypes.h:378
static EXTRTMETHOD void removeEventHandler(OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler)
void memFreeAll()
Definition: asn1CppTypes.h:483
Definition: asn1type.h:438
virtual void resetErrorInfo()
Definition: OSRTMsgBuf.h:205
ASN1TDynBitStr(ASN1DynBitStr &_bs)
Definition: asn1CppTypes.h:652
void * memAllocZ(size_t numocts)
Definition: OSRTContext.h:208
void memReset()
Definition: OSRTContext.h:251
ASN1TBitStr32(ASN1BitStr32 &_bs)
Definition: asn1CppTypes.h:721
virtual void setErrorHandler(Asn1ErrorHandler *pErrorHandler)
Definition: asn1CppTypes.h:259
virtual void printErrorInfo()
Definition: OSRTMsgBuf.h:197
Definition: asn1type.h:908
virtual OSRTCtxtPtr getContext()
Definition: OSRTMsgBuf.h:94
ASN1TBMPString()
Definition: asn1CppTypes.h:739
ASN1TOpenType()
Definition: asn1CppTypes.h:767
void rtxDListInit(OSRTDList *pList)
OSRTCtxtPtr getContext()
Definition: asn1CppTypes.h:399
Definition: rtxDList.h:64
void resetErrorInfo()
Definition: OSRTContext.h:267
int getStatus() const
Definition: asn1CppTypes.h:442
Definition: asn1CppTypes.h:871
virtual void removeEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:234
void memFreePtr(void *ptr)
Definition: asn1CppTypes.h:520
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:316
Asn1TObject()
Definition: asn1CppTypes.h:782
virtual void * getAppInfo()
Definition: asn1CppTypes.h:175
virtual int EncodeTo(OSRTMessageBufferIF &)
Definition: asn1CppTypes.h:586
Definition: asn1CppTypes.h:695
Definition: asn1CppTypes.h:102
Definition: asn1CppTypes.h:308
Definition: asn1CppTypes.h:813
virtual ~ASN1MessageBuffer()
Definition: asn1CppTypes.h:140
ASN1TUniversalString()
Definition: asn1CppTypes.h:753
virtual void resetErrorInfo()
Definition: asn1CppTypes.h:243
OSRTDListNode * rtxDListAppend(struct OSCTXT *pctxt, OSRTDList *pList, void *pData)
Definition: asn1type.h:1036
virtual void addEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:150
Definition: asn1CppTypes.h:778
Definition: OSRTContext.h:310
ASN1TBitStr32(OSUINT32 _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:708
OSCTXT * getCtxtPtr()
Definition: asn1CppTypes.h:407
void * memAlloc(OSSIZE numocts)
Definition: asn1CppTypes.h:456
void * memAllocZ(OSSIZE numocts)
Definition: asn1CppTypes.h:472
void printErrorInfo()
Definition: asn1CppTypes.h:529
#define ASN_E_NOTPDU
Definition: asn1ErrCodes.h:125
Definition: asn1CppTypes.h:735
Definition: asn1CppTypes.h:628
void memReset()
Definition: asn1CppTypes.h:507
void setContext(OSRTContext *ctxt)
Definition: asn1CppTypes.h:841
virtual int DecodeFrom(OSRTMessageBufferIF &, OSBOOL free=TRUE)
Definition: asn1CppTypes.h:602
void append(OSRTDList &llist, void *pdata)
Definition: asn1CppTypes.h:388
Definition: asn1CppTypes.h:857
OSRTMessageBufferIF * mpMsgBuf
Definition: asn1CppTypes.h:322
virtual int setStatus(int stat)
Definition: asn1CppTypes.h:130
virtual const OSOCTET * getMsgPtr()
Definition: OSRTMsgBuf.h:149
ASN1TDynBitStr64(ASN1DynBitStr64 &_bs)
Definition: asn1CppTypes.h:685
Definition: asn1type.h:958
#define OS_UNUSED_ARG(arg)
Definition: asn1CppEvtHndlr.h:55
Definition: asn1type.h:432
void memFreeAll()
Definition: OSRTContext.h:218
Definition: rtxMemBuf.h:48
OSSIZE rtxCtxtGetBitOffset(OSCTXT *pctxt)
Definition: OSRTContext.h:64
Definition: OSRTMsgBuf.h:46
void printErrorInfo()
Definition: OSRTContext.h:259
Definition: asn1CppTypes.h:763
#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:109
Definition: asn1type.h:425
void resetError()
Definition: asn1CppTypes.h:538
#define RTERR_NOTSUPP
Definition: rtxErrCodes.h:528
Definition: asn1CppEvtHndlr.h:547
ASN1TDynBitStr64(OSSIZE _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:674
static EXTRTMETHOD void addEventHandler(OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler)
void memFreePtr(void *ptr)
Definition: OSRTContext.h:230
ASN1TDynBitStr(OSUINT32 _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:641
OSBOOL isNull() const
Definition: OSRTContext.h:394
Definition: asn1CppEvtHndlr.h:67
virtual ~ASN1TPDU()
Definition: asn1CppTypes.h:850
virtual EXTRTMETHOD int initBuffer(OSOCTET *pMsgBuf, size_t msgBufLen)
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:821
Definition: rtxContext.h:189
Definition: asn1type.h:918
#define LOG_RTERR(pctxt, stat)
Definition: rtxError.h:79
ASN1TDynBitStr64()
Definition: asn1CppTypes.h:665
virtual void MemFree()
Definition: asn1CppTypes.h:613
int getStatus() const
Definition: OSRTContext.h:124
virtual OSCTXT * getCtxtPtr()
Definition: OSRTMsgBuf.h:102
virtual OSBOOL isA(Type)
Definition: asn1CppTypes.h:225
void * memRealloc(void *ptr, OSSIZE numocts)
Definition: asn1CppTypes.h:497
Definition: asn1CppTypes.h:799
Definition: asn1CppTypes.h:749
ASN1TPDUSeqOfList()
Definition: asn1CppTypes.h:875
size_t getBitOffset()
Definition: asn1CppTypes.h:281
void * memRealloc(void *ptr, size_t numocts)
Definition: OSRTContext.h:243
void * memAlloc(size_t numocts)
Definition: OSRTContext.h:195
ASN1TSeqOfList()
Definition: asn1CppTypes.h:861
virtual void setAppInfo(void *)
Definition: asn1CppTypes.h:250