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 ADC_X_PARSE2_HXX
25 #define ADC_X_PARSE2_HXX
26 
27 // USED SERVICES
28 	// BASE CLASSES
29 #include <cosv/x.hxx>
30 	// COMPONENTS
31 	// PARAMETERS
32 
33 
34 class X_AutodocParser : public csv::Exception
35 {
36   public:
37 	// TYPES
38 	enum E_Type
39 	{
40 		x_Any						= 0,
41 		x_InvalidChar,
42 		x_UnexpectedToken,
43 		x_UnexpectedEOF
44 	};
45 	// LIFECYCLE
X_AutodocParser(E_Type i_eType,const char * i_sName="")46 						X_AutodocParser(
47 							E_Type				i_eType,
48 							const char *		i_sName = "" )
49 												:	eType(i_eType), sName(i_sName) {}
50 	// INQUIRY
51 	virtual void	   	GetInfo(
52 							std::ostream &      o_rOutputMedium ) const;
53 
54   private:
55 	E_Type				eType;
56 	String              sName;
57 
58 };
59 
60 
61 
62 
63 #endif
64