guid.h

Go to the documentation of this file.
00001 /*
00002  * guid.h
00003  *
00004  * Globally Unique Identifier
00005  *
00006  * Open H323 Library
00007  *
00008  * Copyright (c) 1998-2001 Equivalence Pty. Ltd.
00009  *
00010  * The contents of this file are subject to the Mozilla Public License
00011  * Version 1.0 (the "License"); you may not use this file except in
00012  * compliance with the License. You may obtain a copy of the License at
00013  * http://www.mozilla.org/MPL/
00014  *
00015  * Software distributed under the License is distributed on an "AS IS"
00016  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
00017  * the License for the specific language governing rights and limitations
00018  * under the License.
00019  *
00020  * The Original Code is Open H323 Library.
00021  *
00022  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
00023  *
00024  * Contributor(s): ______________________________________.
00025  *
00026  * $Log: guid.h,v $
00027  * Revision 2.5  2005/11/30 13:35:26  csoutheren
00028  * Changed tags for Doxygen
00029  *
00030  * Revision 2.4  2004/03/11 06:54:27  csoutheren
00031  * Added ability to disable SIP or H.323 stacks
00032  *
00033  * Revision 2.3  2002/11/10 11:33:17  robertj
00034  * Updated to OpenH323 v1.10.3
00035  *
00036  * Revision 2.2  2002/09/16 02:52:35  robertj
00037  * Added #define so can select if #pragma interface/implementation is used on
00038  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00039  *
00040  * Revision 2.1  2002/09/04 06:01:47  robertj
00041  * Updated to OpenH323 v1.9.6
00042  *
00043  * Revision 2.0  2001/07/27 15:48:24  robertj
00044  * Conversion of OpenH323 to Open Phone Abstraction Library (OPAL)
00045  *
00046  * Revision 1.4  2002/09/16 01:14:15  robertj
00047  * Added #define so can select if #pragma interface/implementation is used on
00048  *   platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.
00049  *
00050  * Revision 1.3  2002/08/05 10:03:47  robertj
00051  * Cosmetic changes to normalise the usage of pragma interface/implementation.
00052  *
00053  * Revision 1.2  2001/03/19 05:51:35  robertj
00054  * Added ! operator to do !IsNULL(), so cannot use it accidentally.
00055  *
00056  * Revision 1.1  2001/03/02 06:59:57  robertj
00057  * Enhanced the globally unique identifier class.
00058  *
00059  */
00060 
00061 #ifndef __OPAL_GUID_H
00062 #define __OPAL_GUID_H
00063 
00064 #ifdef P_USE_PRAGMA
00065 #pragma interface
00066 #endif
00067 
00068 #include <opal/buildopts.h>
00069 
00070 class PASN_OctetString;
00071 
00072 
00074 
00080 class OpalGloballyUniqueID : public PBYTEArray
00081 {
00082     PCLASSINFO(OpalGloballyUniqueID, PBYTEArray);
00083 
00084   public:
00091     OpalGloballyUniqueID();
00092 
00098     OpalGloballyUniqueID(
00099       const char * cstr    
00100     );
00103     OpalGloballyUniqueID(
00104       const PString & str  
00105     );
00108     OpalGloballyUniqueID(
00109       const PASN_OctetString & ostr  
00110     );
00112 
00119     virtual void PrintOn(
00120       ostream & strm    
00121     ) const;
00122 
00127     virtual void ReadFrom(
00128       istream & strm    
00129     );
00130 
00135     virtual PObject * Clone() const;
00136 
00141     virtual PINDEX HashFunction() const;
00143 
00148     PString AsString() const;
00149 
00152     BOOL IsNULL() const;
00153 
00154     BOOL operator!() const { return !IsNULL(); }
00156 };
00157 
00158 
00159 #endif // __OPAL_GUID_H
00160 
00161 

Generated on Mon Sep 25 16:19:37 2006 for OPAL by  doxygen 1.4.7