xref: /trunk/main/autodoc/inc/cosv/x.hxx (revision 11c03c6d)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef CSV_X_HXX
25 #define CSV_X_HXX
26 
27 // USED SERVICES
28 	// BASE CLASSES
29 	// COMPONENTS
30 #include <cosv/string.hxx>
31 	// PARAMETERS
32 #include <cosv/csv_ostream.hxx>
33 
34 
35 namespace csv
36 {
37 
38 class Exception
39 {
40   public:
~Exception()41 	virtual				~Exception() {}
42 	virtual void		GetInfo(
43 							ostream &		    o_rOutputMedium ) const = 0;
44 };
45 
46 
47 class X_Default : public Exception
48 {
49   public:
X_Default(const char * i_sMessage)50 	                    X_Default(
51                             const char *        i_sMessage )
52                             :   sMessage(i_sMessage) {}
53 	virtual void		GetInfo(                // Implemented in comfunc.cxx
54 							ostream &		    o_rOutputMedium ) const;
55   private:
56     String              sMessage;
57 };
58 
59 
60 }   // namespace csv
61 
62 
63 
64 #endif
65 
66 
67 
68