3
Copyright (C) 1999,2000 CoreLinux Consortium
5
The CoreLinux++ Library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public License as
7
published by the Free Software Foundation; either version 2 of the
8
License, or (at your option) any later version.
10
The CoreLinux++ Library Library is distributed in the hope that it will
11
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Library General Public License for more details.
15
You should have received a copy of the GNU Library General Public
16
License along with the GNU C Library; see the file COPYING.LIB. If not,
17
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
Boston, MA 02111-1307, USA.
21
#if !defined(__COMMON_HPP)
25
#if !defined(__EQUIPMENT_HPP)
26
#include <Equipment.hpp>
29
using namespace corelinux;
32
// Default constructor throws
36
Equipment::Equipment( void ) throw( CompositeException )
40
throw CompositeException( LOCATION );
44
// Valid default constructor
47
Equipment::Equipment( NameCref aName )
58
Equipment::Equipment( EquipmentCref aRef )
60
theName( aRef.getName() )
69
Equipment::~Equipment( void )
75
// Assignment operator throws exception
78
EquipmentRef Equipment::operator=( EquipmentCref )
79
throw(CORELINUX(CompositeException))
81
throw CompositeException( LOCATION );
86
// Equality operator overload
89
bool Equipment::operator==( EquipmentCref aRef ) const
91
return (theName == aRef.getName() );
98
NameCref Equipment::getName( void ) const
104
Common rcs information do not modify
107
$Date: 2000/01/21 03:44:01 $