Home > Support > Documentation

rtCompare.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1997-2007 Objective Systems, Inc.
00003  *
00004  * This software is furnished under a license and may be used and copied
00005  * only in accordance with the terms of such license and with the
00006  * inclusion of the above copyright notice. This software or any other
00007  * copies thereof may not be provided or otherwise made available to any
00008  * other person. No title to and ownership of the software is hereby
00009  * transferred.
00010  *
00011  * The information in this software is subject to change without notice
00012  * and should not be construed as a commitment by Objective Systems, Inc.
00013  *
00014  * PROPRIETARY NOTICE
00015  *
00016  * This software is an unpublished work subject to a confidentiality agreement
00017  * and is protected by copyright and trade secret law.  Unauthorized copying,
00018  * redistribution or other use of this work is prohibited.
00019  *
00020  * The above notice of copyright on this source code product does not indicate
00021  * any actual or intended publication of such source code.
00022  *
00023  *****************************************************************************/
00024 
00030 #ifndef _RTCOMPARE_H_
00031 #define _RTCOMPARE_H_
00032 #include "asn1type.h"
00033 #include "rtconv.h"
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00053 /* Compare function to Buffer */
00054 
00071 EXTERNRT OSBOOL rtCmpBoolean (const char* name, OSBOOL value, 
00072                                 OSBOOL compValue, char* errBuff, 
00073                                 int errBuffSize);
00074 
00075 EXTERNRT OSBOOL rtCmpInt8 (const char* name, OSINT8 value, 
00076                              OSINT8 compValue, char* errBuff, 
00077                              int errBuffSize);
00078 
00079 EXTERNRT OSBOOL rtCmpSInt (const char* name, OSINT16 value, 
00080                              OSINT16 compValue, char* errBuff, 
00081                              int errBuffSize);
00082 
00083 EXTERNRT OSBOOL rtCmpUInt8 (const char* name, OSUINT8 value, 
00084                               OSUINT8 compValue, char* errBuff, 
00085                               int errBuffSize);
00086 
00087 EXTERNRT OSBOOL rtCmpUSInt (const char* name, OSUINT16 value, 
00088                               OSUINT16 compValue, char* errBuff, 
00089                               int errBuffSize);
00090 
00106 EXTERNRT OSBOOL rtCmpInteger (const char* name, OSINT32 value, 
00107                                 OSINT32 compValue, char* errBuff, 
00108                                 int errBuffSize);
00109 
00125 EXTERNRT OSBOOL rtCmpUnsigned (const char* name, OSUINT32 value, 
00126                                  OSUINT32 compValue, char* errBuff, 
00127                                  int errBuffSize);
00128 
00144 EXTERNRT OSBOOL rtCmpInt64 (const char* name, OSINT64 value, 
00145                               OSINT64 compValue, char* errBuff, 
00146                               int errBuffSize);
00147 
00163 EXTERNRT OSBOOL rtCmpUInt64 (const char* name, OSUINT64 value, 
00164                                OSUINT64 compValue, char* errBuff, 
00165                                int errBuffSize);
00166 
00184 EXTERNRT OSBOOL rtCmpBitStr (const char* name, OSUINT32 numbits, 
00185                                const OSOCTET* data, OSUINT32 compNumbits, 
00186                                const OSOCTET* compData, char* errBuff, 
00187                                int errBuffSize);
00188 
00206 EXTERNRT OSBOOL rtCmpOctStr (const char* name, OSUINT32 numocts, 
00207                                const OSOCTET* data, OSUINT32 compNumocts, 
00208                                const OSOCTET* compData, char* errBuff, 
00209                                int errBuffSize);
00210 
00227 EXTERNRT OSBOOL rtCmpCharStr (const char* name, const char* cstring, 
00228                                 const char* compCstring, char* errBuff, 
00229                                 int errBuffSize);
00230 
00249 EXTERNRT OSBOOL rtCmp16BitCharStr (const char* name, 
00250                                      Asn116BitCharString* bstring, 
00251                                      Asn116BitCharString* compBstring, 
00252                                      char* errBuff, int errBuffSize);
00253 
00272 EXTERNRT OSBOOL rtCmp32BitCharStr (const char* name, 
00273                                      Asn132BitCharString* bstring, 
00274                                      Asn132BitCharString* compBstring, 
00275                                      char* errBuff, int errBuffSize);
00276 
00292 EXTERNRT OSBOOL rtCmpReal (const char* name, OSREAL value, 
00293                              OSREAL compValue, char* errBuff, 
00294                              int errBuffSize);
00295 
00312 EXTERNRT OSBOOL rtCmpOID (const char* name, ASN1OBJID* pOID, 
00313                             ASN1OBJID* pcompOID, char* errBuff, 
00314                             int errBuffSize);
00315 EXTERNRT OSBOOL rtCmpOIDValue (const char* name, ASN1OBJID* pOID, 
00316                                  ASN1OBJID* pcompOID, char* errBuff, 
00317                                  int errBuffSize);
00318 
00335 EXTERNRT OSBOOL rtCmpOID64 (const char* name, ASN1OID64* pOID, 
00336                               ASN1OID64* pcompOID, char* errBuff, 
00337                               int errBuffSize);
00338 EXTERNRT OSBOOL rtCmpOID64Value (const char* name, ASN1OID64* pOID, 
00339                                    ASN1OID64* pcompOID, char* errBuff, 
00340                                    int errBuffSize);
00341 
00362 EXTERNRT OSBOOL rtCmpOpenType (const char* name, 
00363                                  OSUINT32 numocts, const OSOCTET* data, 
00364                                  OSUINT32 compNumocts, const OSOCTET* compData, 
00365                                  char* errBuff, int errBuffSize);
00366 
00391 EXTERNRT OSBOOL rtCmpOpenTypeExt (const char* name, 
00392                                     OSRTDList* pElemList, 
00393                                     OSRTDList* pCompElemList, 
00394                                     char* errBuff, int errBuffSize);
00395 EXTERNRT OSBOOL rtCmpTag (const char* name, int tag, int compTag, 
00396                             char* errBuff, int errBuffSize);
00397 EXTERNRT OSBOOL rtCmpSeqOfElements (const char* name, int noOfElems, 
00398                                       int compNoOfElems, char* errBuff, 
00399                                       int errBuffSize);
00400 EXTERNRT OSBOOL rtCmpOptional (const char* name, unsigned presentBit, 
00401                                  unsigned compPresentBit, char* errBuff, 
00402                                  int errBuffSize);
00407 /* Compare function To StdOut */
00408 
00425 EXTERNRT OSBOOL rtCmpToStdoutBoolean (const char* name, OSBOOL value, 
00426                                         OSBOOL compValue);
00427 
00433 EXTERNRT OSBOOL rtCmpToStdoutInteger (const char* name, OSINT32 value, 
00434                                         OSINT32 compValue);
00435 
00441 EXTERNRT OSBOOL rtCmpToStdoutInt64 (const char* name, OSINT64 value, 
00442                                       OSINT64 compValue);
00443 
00449 EXTERNRT OSBOOL rtCmpToStdoutUnsigned (const char* name, OSUINT32 value, 
00450                                          OSUINT32 compValue);
00451 
00457 EXTERNRT OSBOOL rtCmpToStdoutUInt64 (const char* name, OSUINT64 value, 
00458                                        OSUINT64 compValue);
00459 
00467 EXTERNRT OSBOOL rtCmpToStdoutBitStr (const char* name, OSUINT32 numbits, 
00468                                        const OSOCTET* data, 
00469                                        OSUINT32 compNumbits, 
00470                                        const OSOCTET* compData);
00478 EXTERNRT OSBOOL rtCmpToStdoutOctStr (const char* name, OSUINT32 numocts, 
00479                                        const OSOCTET* data, 
00480                                        OSUINT32 compNumocts, 
00481                                        const OSOCTET* compData);
00487 EXTERNRT OSBOOL rtCmpToStdoutCharStr (const char* name, 
00488                                         const char* cstring, 
00489                                         const char* compCstring);
00495 EXTERNRT OSBOOL rtCmpToStdout16BitCharStr (const char* name, 
00496                                              Asn116BitCharString* bstring, 
00497                                              Asn116BitCharString* compBstring);
00503 EXTERNRT OSBOOL rtCmpToStdout32BitCharStr (const char* name, 
00504                                              Asn132BitCharString* bstring, 
00505                                              Asn132BitCharString* compBstring);
00511 EXTERNRT OSBOOL rtCmpToStdoutReal (const char* name, 
00512                                      OSREAL value, OSREAL compValue);
00518 EXTERNRT OSBOOL rtCmpToStdoutOID (const char* name, 
00519                                     ASN1OBJID* pOID, ASN1OBJID* pcompOID);
00525 EXTERNRT OSBOOL rtCmpToStdoutOIDValue (const char* name, 
00526                                          ASN1OBJID* pOID, ASN1OBJID* pcompOID);
00532 EXTERNRT OSBOOL rtCmpToStdoutOID64 (const char* name, 
00533                                       ASN1OID64* pOID, ASN1OID64* pcompOID);
00539 EXTERNRT OSBOOL rtCmpToStdoutOID64Value (const char* name, 
00540                                            ASN1OID64* pOID, 
00541                                            ASN1OID64* pcompOID);
00549 EXTERNRT OSBOOL rtCmpToStdoutOpenType (const char* name, 
00550                                          OSUINT32 numocts, 
00551                                          const OSOCTET* data, 
00552                                          OSUINT32 compNumocts, 
00553                                          const OSOCTET* compData);
00559 EXTERNRT OSBOOL rtCmpToStdoutOpenTypeExt (const char* name, 
00560                                             OSRTDList* pElemList, 
00561                                             OSRTDList* pCompElemList);
00567 EXTERNRT OSBOOL rtCmpToStdoutTag (const char* name, int tag, 
00568                                     int compTag);
00574 EXTERNRT OSBOOL rtCmpToStdoutSeqOfElements (const char* name, 
00575                                               int noOfElems, 
00576                                               int compNoOfElems);
00582 EXTERNRT OSBOOL rtCmpToStdoutOptional (const char* name, 
00583                                          unsigned presentBit, 
00584                                          unsigned compPresentBit);
00590 #ifdef __cplusplus
00591 }
00592 #endif
00593 #endif 
00594