1
#if !defined (__IDENTIFIER_HPP)
2
#define __IDENTIFIER_HPP
6
Copyright (C) 1999,2000 CoreLinux Consortium
8
The CoreLinux++ Library is free software; you can redistribute it and/or
9
modify it under the terms of the GNU Library General Public License as
10
published by the Free Software Foundation; either version 2 of the
11
License, or (at your option) any later version.
13
The CoreLinux++ Library Library is distributed in the hope that it will
14
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
Library General Public License for more details.
18
You should have received a copy of the GNU Library General Public
19
License along with the GNU C Library; see the file COPYING.LIB. If not,
20
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21
Boston, MA 02111-1307, USA.
24
#if !defined IN_COMMON_HPP
25
#error Identifier.hpp is included by Common.hpp only.
31
DECLARE_CLASS( Identifier );
34
An Identifier is a abstract representation of identity. Derivations
35
implement ConcreteIdentifiers (Strings, Widgets, UUID, whatever).
36
The logical operators call virtual methods which derivations
37
should define.as all the defaults return true.
40
class Identifier : public CoreLinuxObject
44
/// Default Constructor
49
@param Identifier const reference
52
Identifier( IdentifierCref );
54
/// Virtual Destructor
56
virtual ~Identifier( void );
62
Assignment operator overload
63
@param Identifier const reference
64
@return Identifier reference to self
67
IdentifierRef operator=( IdentifierCref );
70
Equality operator overload calls isEqual
72
@param Identifier const reference
73
@return true if equal, false otherwise
76
bool operator==( IdentifierCref ) const;
79
Non-equality operator overload returns
81
@param Identifier const reference
82
@return false if equal, true otherwise
85
bool operator!=( IdentifierCref ) const;
88
Less than operator overload. Calls isLessThan
90
@param Identifier const reference
91
@return true if less than, false otherwise
94
bool operator<( IdentifierCref ) const;
97
Less than or equal operator overload. Calls
98
isLessThanOrEqual virtual method.
99
@param Identifier const reference
100
@return true if less than or equal, false otherwise
103
bool operator<=( IdentifierCref ) const;
106
Greater than operator overload. Calls isGreaterThan
108
@param Identifier const reference
109
@return true if greater than, false otherwise
112
bool operator>( IdentifierCref ) const;
115
Greater than or equal operator overload. Calls
116
isGreaterThanOrEqual virtual method.
117
@param Identifier const reference
118
@return true if greater than or equal, false otherwise
121
bool operator>=( IdentifierCref ) const;
127
@param Identifier const reference
128
@return true if equal, false otherwise
131
virtual bool isEqual( IdentifierCref ) const ;
135
@param Identifier const reference
136
@return true if less than, false otherwise
139
virtual bool isLessThan( IdentifierCref ) const ;
142
Less than or equal method.
143
@param Identifier const reference
144
@return true if less than or equal, false otherwise
147
virtual bool isLessThanOrEqual( IdentifierCref ) const ;
151
@param Identifier const reference
152
@return true if greater than, false otherwise
155
virtual bool isGreaterThan( IdentifierCref ) const ;
158
Greater than or equal method.
159
@param Identifier const reference
160
@return true if greater than or equal, false otherwise
163
virtual bool isGreaterThanOrEqual( IdentifierCref ) const ;
169
#endif // if !defined(__IDENTIFIER_HPP)
172
Common rcs information do not modify
175
$Date: 2000/04/23 20:43:13 $