~ubuntu-branches/ubuntu/gutsy/libcorelinux/gutsy

« back to all changes in this revision

Viewing changes to corelinux/InvalidCompositeException.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2001-12-29 17:43:34 UTC
  • Revision ID: james.westby@ubuntu.com-20011229174334-ejlsuilsiro5vmzr
Tags: 0.4.32-4
* fix config.{guess,sub} out of date on hppa and s390 (closes: #124296,#121830)
* try to be more descriptive in the description of the package  (closes: #115758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined (__INVALIDCOMPOSITEEXCEPTION_HPP)
 
2
#define __INVALIDCOMPOSITEEXCEPTION_HPP
 
3
 
 
4
/*
 
5
  CoreLinux++ 
 
6
  Copyright (C) 2000 CoreLinux Consortium
 
7
  
 
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.
 
12
 
 
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.
 
17
 
 
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.  
 
22
*/   
 
23
 
 
24
#if   !defined(__COMMON_HPP)
 
25
#include <Common.hpp>
 
26
#endif
 
27
 
 
28
#if   !defined(__COMPOSITEEXCEPTION_HPP)
 
29
#include <CompositeException.hpp>
 
30
#endif
 
31
 
 
32
namespace corelinux
 
33
{
 
34
 
 
35
 
 
36
   DECLARE_CLASS( InvalidCompositeException );
 
37
 
 
38
   /**
 
39
   InvalidCompositeException is an exception that is usually
 
40
   thrown when a composite operation is attempted on a 
 
41
   leaf component.
 
42
   */
 
43
 
 
44
   class InvalidCompositeException : public CompositeException
 
45
   {
 
46
   
 
47
   public:
 
48
   
 
49
                        /**
 
50
                        Default Constructor
 
51
                        @param file The source module throwing the 
 
52
                        exception
 
53
                        @param line The line of source throwing the 
 
54
                        exception
 
55
                        @param severity The Exception::Severity of the 
 
56
                        Exception
 
57
                        @param outOfMemory An out of memory indicator
 
58
                        */
 
59
 
 
60
                        InvalidCompositeException
 
61
                        (
 
62
                           CharCptr file,
 
63
                           LineNum  line,
 
64
                           Severity severity = Exception::CONTINUABLE,
 
65
                           bool     outOfMemory = false 
 
66
                        );
 
67
   
 
68
                        /**
 
69
                        Copy constructor
 
70
                        @param InvalidCompositeException const reference
 
71
                        */
 
72
                     
 
73
                        InvalidCompositeException
 
74
                           ( 
 
75
                              InvalidCompositeExceptionCref 
 
76
                           );
 
77
   
 
78
                        /// Virtual Destructor
 
79
   
 
80
      virtual           ~InvalidCompositeException( void );
 
81
   
 
82
         //
 
83
         // Operator overloads
 
84
         //
 
85
   
 
86
               /**
 
87
               Assignment operator overload
 
88
               @param  InvalidCompositeException const reference
 
89
               @return InvalidCompositeException reference to self
 
90
               */
 
91
            
 
92
               InvalidCompositeExceptionRef   operator=
 
93
                  ( 
 
94
                     InvalidCompositeExceptionCref 
 
95
                  );
 
96
            
 
97
               /**
 
98
               Equality operator overload
 
99
               @param InvalidCompositeException const reference
 
100
               @return true if equal, false otherwise
 
101
               */
 
102
 
 
103
               bool           operator==
 
104
                  ( 
 
105
                     InvalidCompositeExceptionCref 
 
106
                  ) const;
 
107
            
 
108
         //
 
109
         // Accessor methods
 
110
         //
 
111
   
 
112
            
 
113
         //
 
114
         // Mutator methods
 
115
         //
 
116
   
 
117
   
 
118
   protected:
 
119
 
 
120
                           /**
 
121
                           InvalidCompositeException must have at least
 
122
                           a location..
 
123
                           Default constructor is not allowed.
 
124
                           */   
 
125
                     
 
126
                           InvalidCompositeException( void );
 
127
   
 
128
   
 
129
   private:
 
130
   
 
131
   private:
 
132
   
 
133
   };
 
134
 
 
135
}
 
136
 
 
137
 
 
138
#endif  // !defined __INVALIDCOMPOSITEEXCEPTION_HPP
 
139
 
 
140
/*
 
141
   Common rcs information do not modify
 
142
   $Author: prudhomm $
 
143
   $Revision: 1.1 $
 
144
   $Date: 2000/04/23 20:43:13 $
 
145
   $Locker:  $
 
146
*/
 
147
 
 
148
 
 
149