Home > Support > Documentation

ASN1TObjId.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 //
00025 // CHANGE LOG
00026 // Date         Init    Description
00027 //
00029 
00033 #ifndef _ASN1TOBJID_H_
00034 #define _ASN1TOBJID_H_
00035 
00036 #include "rtsrc/asn1type.h"
00037 
00049 struct EXTERNRT ASN1TObjId : public ASN1OBJID {
00053    ASN1TObjId () { numids = 0; }
00054 
00058    virtual ~ASN1TObjId ();
00059 
00067    ASN1TObjId (OSOCTET _numids, const OSUINT32* _subids);
00068 
00076    ASN1TObjId (const ASN1OBJID& oid);
00077 
00083    ASN1TObjId (const ASN1TObjId& oid);
00084 
00090    ASN1TObjId (const char *dotted_oid_string);
00091   
00097    ASN1TObjId& operator=(const char *dotted_oid_string);
00098 
00106    void operator= (const ASN1OBJID& rhs);
00107 
00114    void operator= (const ASN1TObjId& rhs);
00115 
00124    ASN1TObjId& operator+=(const char *dotted_oid_string);
00125 
00134    ASN1TObjId& operator+=(const OSUINT32 i);
00135 
00144    ASN1TObjId& operator+=(const ASN1TObjId &o);
00145    
00152    const char *toString (OSCTXT* pctxt) const;
00153 
00160    void set_data (const OSUINT32 *raw_oid, OSUINT32 oid_len);
00161 
00170    int nCompare(const OSUINT32 n, const ASN1TObjId &o) const;
00171 
00180    int RnCompare(const OSUINT32 n, const ASN1TObjId &o) const;
00181 
00187    void trim(const OSUINT32 n);
00188    
00189 };
00190 
00199 EXTERNRT int operator== (const ASN1OBJID& lhs, const ASN1OBJID& rhs);
00200 
00209 EXTERNRT int operator==(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00210 
00219 EXTERNRT int operator==(const ASN1OBJID &lhs, const char *dotted_oid_string);
00220 
00229 EXTERNRT int operator==(const ASN1TObjId &lhs, const char *dotted_oid_string);
00230   
00240 EXTERNRT int operator!=(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00241 
00251 EXTERNRT int operator!=(const ASN1OBJID &lhs, const ASN1OBJID &rhs);
00252 
00262 EXTERNRT int operator!=(const ASN1OBJID &lhs, const char *dotted_oid_string);
00263 
00273 EXTERNRT int operator!=(const ASN1TObjId &lhs, const char *dotted_oid_string);
00274 
00284 EXTERNRT int operator<(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00285 
00295 EXTERNRT int operator<(const ASN1OBJID &lhs, const ASN1OBJID &rhs);
00296 
00306 EXTERNRT int operator<(const ASN1OBJID &lhs, const char *dotted_oid_string);
00307 
00317 EXTERNRT int operator<(const ASN1TObjId &lhs, const char *dotted_oid_string);
00318 
00328 EXTERNRT int operator<=(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00329 
00339 EXTERNRT int operator<=(const ASN1OBJID &lhs, const ASN1OBJID &rhs);
00340 
00351 EXTERNRT int operator<=(const ASN1TObjId &lhs, const char *dotted_oid_string);
00352 
00362 EXTERNRT int operator<=(const ASN1OBJID &lhs, const char *dotted_oid_string);
00363 
00364 
00374 EXTERNRT int operator>(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00375 
00385 EXTERNRT int operator>(const ASN1TObjId &lhs, const char *dotted_oid_string);
00386 
00396 EXTERNRT int operator>(const ASN1OBJID &lhs, const ASN1OBJID &rhs);
00397 
00407 EXTERNRT int operator>(const ASN1OBJID &lhs, const char *dotted_oid_string);
00408 
00418 EXTERNRT int operator>=(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00419 
00429 EXTERNRT int operator>=(const ASN1TObjId &lhs, const char *dotted_oid_string);
00430 
00440 EXTERNRT int operator>=(const ASN1OBJID &lhs, const ASN1OBJID &rhs);
00441 
00442 
00452 EXTERNRT int operator>=(const ASN1OBJID &lhs, const char *dotted_oid_string);
00453 
00462 EXTERNRT ASN1TObjId operator +(const ASN1TObjId &lhs, const ASN1TObjId &rhs);
00463 
00464 #endif
00465