28 #ifndef _ASN1CPPTYPES_H_ 29 #define _ASN1CPPTYPES_H_ 32 #if !defined(__SYMBIAN32__) && !defined(TELIUM) 41 #include "rtsrc/asn1CppRawEvtHndlr.h" 55 #define ASN1RTLTHROW(stat) exit (-1) 62 #define ASN1THROW(ex) exit (-1) 72 #define ASN1CATCH(exType,ex,body) if (0) { body; } 164 #if !defined(__SYMBIAN32__) && !defined(_V2X) 208 virtual EXTRTMETHOD
int initBuffer (OSUNICHAR* unistr);
234 virtual OSBOOL
isA (Type ) {
return FALSE; }
250 { Asn1RawEventHandler::removeEventHandler(
getCtxtPtr()); }
287 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
301 inline OSOCTET* GetMsgCopy () {
return getMsgCopy(); }
302 inline const OSOCTET* GetMsgPtr() {
return getMsgPtr(); }
351 EXTRTMETHOD
int setMsgBuf
352 (OSRTMessageBufferIF& msgBuf, OSBOOL initBuf=FALSE);
364 EXTRTMETHOD
int setRunTimeKey (
const OSOCTET* key, OSSIZE keylen);
376 EXTRTMETHOD
ASN1CType (OSRTMessageBufferIF& msgBuf);
421 return (!mpContext.
isNull ()) ? mpContext->
getPtr() : 0;
440 char* getErrorText (
char* textbuf = (
char*)0, OSSIZE bufsize = 0);
470 if (mpContext.
isNull ())
return 0;
471 return mpContext->
memAlloc (numocts);
486 if (mpContext.
isNull ())
return 0;
511 if (mpContext.
isNull ())
return 0;
563 return getContext()->setDiag (value);
574 virtual EXTRTMETHOD
int Encode ();
587 virtual EXTRTMETHOD
int Decode (OSBOOL free = FALSE);
614 virtual int DecodeFrom (OSRTMessageBufferIF& , OSBOOL free = TRUE)
665 numbits = _bs.numbits;
698 numbits = _bs.numbits;
722 size_t sz = _numbits / 8;
723 if ( _numbits % 8 > 0 ) sz += 1;
724 OSCRTLSAFEMEMCPY (data,
sizeof(data), _data, sz);
734 numbits = _bs.numbits;
735 OSCRTLSAFEMEMCPY (data,
sizeof(data), _bs.data,
sizeof(_bs.data));
741 #include "rtsrc/ASN1TOctStr64.h" 854 if (mpContext.
isNull()) mpContext = ctxt;
855 else if (ctxt == 0) mpContext = 0;
static EXTRTMETHOD void setErrorHandler(OSCTXT *pCtxt, Asn1ErrorHandler *pHandler)
Definition: asn1CppTypes.h:673
OSBOOL setDiag(OSBOOL value)
Definition: asn1CppTypes.h:562
Definition: asn1type.h:1052
ASN1TBitStr32()
Definition: asn1CppTypes.h:711
ASN1TSeqExt()
Definition: asn1CppTypes.h:815
ASN1TDynBitStr()
Definition: asn1CppTypes.h:644
virtual ~ASN1CType()
Definition: asn1CppTypes.h:391
class EXTRTCLASS ASN1MessageBuffer
Definition: asn1CppEvtHndlr.h:545
static EXTRTMETHOD void removeEventHandler(OSCTXT *pCtxt, Asn1NamedEventHandler *pHandler)
void memFreeAll()
Definition: asn1CppTypes.h:496
Definition: asn1type.h:544
virtual void resetErrorInfo()
Definition: OSRTMsgBuf.h:205
ASN1TDynBitStr(ASN1DynBitStr &_bs)
Definition: asn1CppTypes.h:664
void * memAllocZ(size_t numocts)
Definition: OSRTContext.h:208
void memReset()
Definition: OSRTContext.h:251
ASN1TBitStr32(ASN1BitStr32 &_bs)
Definition: asn1CppTypes.h:733
virtual void setErrorHandler(Asn1ErrorHandler *pErrorHandler)
Definition: asn1CppTypes.h:272
virtual void printErrorInfo()
Definition: OSRTMsgBuf.h:197
Definition: asn1type.h:1014
virtual OSRTCtxtPtr getContext()
Definition: OSRTMsgBuf.h:94
ASN1TBMPString()
Definition: asn1CppTypes.h:751
ASN1TOpenType()
Definition: asn1CppTypes.h:779
void rtxDListInit(OSRTDList *pList)
OSRTCtxtPtr getContext()
Definition: asn1CppTypes.h:412
Definition: rtxDList.h:64
void resetErrorInfo()
Definition: OSRTContext.h:267
int getStatus() const
Definition: asn1CppTypes.h:455
Definition: asn1CppTypes.h:883
virtual void removeEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:243
void memFreePtr(void *ptr)
Definition: asn1CppTypes.h:533
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:329
Asn1TObject()
Definition: asn1CppTypes.h:794
virtual void * getAppInfo()
Definition: asn1CppTypes.h:184
virtual int EncodeTo(OSRTMessageBufferIF &)
Definition: asn1CppTypes.h:598
Definition: asn1CppTypes.h:707
#define OS_UNUSED_ARG(arg)
Definition: asn1CppEvtHndlr.h:63
Definition: asn1CppTypes.h:103
Definition: asn1CppTypes.h:321
Definition: asn1CppTypes.h:825
virtual ~ASN1MessageBuffer()
Definition: asn1CppTypes.h:141
ASN1TUniversalString()
Definition: asn1CppTypes.h:765
virtual void resetErrorInfo()
Definition: asn1CppTypes.h:256
OSRTDListNode * rtxDListAppend(struct OSCTXT *pctxt, OSRTDList *pList, void *pData)
Definition: asn1type.h:1142
virtual void addEventHandler(Asn1NamedEventHandler *pEventHandler)
Definition: asn1CppTypes.h:151
Definition: asn1CppTypes.h:790
Definition: OSRTContext.h:310
ASN1TBitStr32(OSUINT32 _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:720
OSCTXT * getCtxtPtr()
Definition: asn1CppTypes.h:420
void * memAlloc(OSSIZE numocts)
Definition: asn1CppTypes.h:469
void * memAllocZ(OSSIZE numocts)
Definition: asn1CppTypes.h:485
void printErrorInfo()
Definition: asn1CppTypes.h:542
#define ASN_E_NOTPDU
Definition: asn1ErrCodes.h:125
Definition: asn1CppTypes.h:747
Definition: asn1CppTypes.h:640
void memReset()
Definition: asn1CppTypes.h:520
void setContext(OSRTContext *ctxt)
Definition: asn1CppTypes.h:853
virtual int DecodeFrom(OSRTMessageBufferIF &, OSBOOL free=TRUE)
Definition: asn1CppTypes.h:614
void append(OSRTDList &llist, void *pdata)
Definition: asn1CppTypes.h:401
Definition: asn1CppTypes.h:869
OSRTMessageBufferIF * mpMsgBuf
Definition: asn1CppTypes.h:335
virtual int setStatus(int stat)
Definition: asn1CppTypes.h:131
virtual const OSOCTET * getMsgPtr()
Definition: OSRTMsgBuf.h:149
void addRawEventHandler(Asn1RawEventHandler *pHandler)
Definition: asn1CppTypes.h:160
ASN1TDynBitStr64(ASN1DynBitStr64 &_bs)
Definition: asn1CppTypes.h:697
Definition: asn1type.h:1064
Definition: asn1type.h:538
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:775
#define RTERR_NOMEM
Definition: rtxErrCodes.h:135
virtual OSOCTET * getMsgCopy()
Definition: OSRTMsgBuf.h:141
OSCTXT * getPtr()
Definition: OSRTContext.h:109
Definition: asn1type.h:531
void resetError()
Definition: asn1CppTypes.h:551
#define RTERR_NOTSUPP
Definition: rtxErrCodes.h:528
Definition: asn1CppEvtHndlr.h:555
ASN1TDynBitStr64(OSSIZE _numbits, const OSOCTET *_data)
Definition: asn1CppTypes.h:686
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:653
OSBOOL isNull() const
Definition: OSRTContext.h:394
Definition: asn1CppEvtHndlr.h:75
virtual ~ASN1TPDU()
Definition: asn1CppTypes.h:862
virtual EXTRTMETHOD int initBuffer(OSOCTET *pMsgBuf, size_t msgBufLen)
OSRTCtxtPtr mpContext
Definition: asn1CppTypes.h:833
Definition: rtxContext.h:198
Definition: asn1type.h:1024
#define LOG_RTERR(pctxt, stat)
Definition: rtxError.h:79
void removeRawEventHandler()
Definition: asn1CppTypes.h:249
ASN1TDynBitStr64()
Definition: asn1CppTypes.h:677
virtual void MemFree()
Definition: asn1CppTypes.h:625
int getStatus() const
Definition: OSRTContext.h:124
virtual OSCTXT * getCtxtPtr()
Definition: OSRTMsgBuf.h:102
virtual OSBOOL isA(Type)
Definition: asn1CppTypes.h:234
void * memRealloc(void *ptr, OSSIZE numocts)
Definition: asn1CppTypes.h:510
Definition: asn1CppTypes.h:811
Definition: asn1CppTypes.h:761
ASN1TPDUSeqOfList()
Definition: asn1CppTypes.h:887
size_t getBitOffset()
Definition: asn1CppTypes.h:294
void * memRealloc(void *ptr, size_t numocts)
Definition: OSRTContext.h:243
void * memAlloc(size_t numocts)
Definition: OSRTContext.h:195
ASN1TSeqOfList()
Definition: asn1CppTypes.h:873
virtual void setAppInfo(void *)
Definition: asn1CppTypes.h:263