PTLib
Version 2.10.10
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
guid.h
Go to the documentation of this file.
1
/*
2
* guid.h
3
*
4
* Globally Unique Identifier
5
*
6
* Open H323 Library
7
*
8
* Copyright (c) 1998-2001 Equivalence Pty. Ltd.
9
*
10
* The contents of this file are subject to the Mozilla Public License
11
* Version 1.0 (the "License"); you may not use this file except in
12
* compliance with the License. You may obtain a copy of the License at
13
* http://www.mozilla.org/MPL/
14
*
15
* Software distributed under the License is distributed on an "AS IS"
16
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17
* the License for the specific language governing rights and limitations
18
* under the License.
19
*
20
* The Original Code is Open H323 Library.
21
*
22
* The Initial Developer of the Original Code is Equivalence Pty. Ltd.
23
*
24
* Contributor(s): ______________________________________.
25
*
26
* $Revision: 21788 $
27
* $Author: rjongbloed $
28
* $Date: 2008-12-11 23:42:13 -0600 (Thu, 11 Dec 2008) $
29
*/
30
31
#ifndef PTLIB_GUID_H
32
#define PTLIB_GUID_H
33
34
#ifdef P_USE_PRAGMA
35
#pragma interface
36
#endif
37
38
class
PASN_OctetString
;
39
40
42
48
class
PGloballyUniqueID
:
public
PBYTEArray
49
{
50
PCLASSINFO(
PGloballyUniqueID
,
PBYTEArray
);
51
52
public
:
59
PGloballyUniqueID
();
60
66
PGloballyUniqueID
(
67
const
char
* cstr
68
);
71
PGloballyUniqueID
(
72
const
PString
& str
73
);
74
#if P_ASN
75
77
PGloballyUniqueID
(
78
const
PASN_OctetString
& ostr
79
);
80
#endif
81
82
89
virtual
void
PrintOn
(
90
ostream & strm
91
)
const
;
92
97
virtual
void
ReadFrom
(
98
istream & strm
99
);
100
105
virtual
PObject
*
Clone
()
const
;
106
111
virtual
PINDEX
HashFunction
()
const
;
113
118
PString
AsString
()
const
;
119
122
PBoolean
IsNULL
()
const
;
123
124
PBoolean
operator!
()
const
{
return
!
IsNULL
(); }
126
};
127
128
129
#endif // PTLIB_GUID_H
130
131
132
// End Of File ///////////////////////////////////////////////////////////////
include
ptclib
guid.h
Generated on Tue May 7 2013 17:25:45 for PTLib by
1.8.3.1