1*78bc99aaSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*78bc99aaSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*78bc99aaSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*78bc99aaSAndrew Rist * distributed with this work for additional information 6*78bc99aaSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*78bc99aaSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*78bc99aaSAndrew Rist * "License"); you may not use this file except in compliance 9*78bc99aaSAndrew Rist * with the License. You may obtain a copy of the License at 10*78bc99aaSAndrew Rist * 11*78bc99aaSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*78bc99aaSAndrew Rist * 13*78bc99aaSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*78bc99aaSAndrew Rist * software distributed under the License is distributed on an 15*78bc99aaSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*78bc99aaSAndrew Rist * KIND, either express or implied. See the License for the 17*78bc99aaSAndrew Rist * specific language governing permissions and limitations 18*78bc99aaSAndrew Rist * under the License. 19*78bc99aaSAndrew Rist * 20*78bc99aaSAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #include <precomp.h> 23cdf0e10cSrcweir #include <x_parse2.hxx> 24cdf0e10cSrcweir 25cdf0e10cSrcweir // NOT FULLY DECLARED SERVICES 26cdf0e10cSrcweir 27cdf0e10cSrcweir enum E_Type 28cdf0e10cSrcweir { 29cdf0e10cSrcweir x_Any = 0, 30cdf0e10cSrcweir x_InvalidChar, 31cdf0e10cSrcweir x_UnexpectedEOF 32cdf0e10cSrcweir }; 33cdf0e10cSrcweir void GetInfo(std::ostream & o_rOutputMedium) const34cdf0e10cSrcweirX_AutodocParser::GetInfo( std::ostream & o_rOutputMedium ) const 35cdf0e10cSrcweir { 36cdf0e10cSrcweir switch (eType) 37cdf0e10cSrcweir { 38cdf0e10cSrcweir case x_Any: 39cdf0e10cSrcweir o_rOutputMedium << "Unspecified parsing exception ." << Endl(); 40cdf0e10cSrcweir break; 41cdf0e10cSrcweir case x_InvalidChar: 42cdf0e10cSrcweir o_rOutputMedium << "Unknown character during parsing." << Endl(); 43cdf0e10cSrcweir break; 44cdf0e10cSrcweir case x_UnexpectedToken: 45cdf0e10cSrcweir o_rOutputMedium << "Unexpected token " << sName << " found." << Endl(); 46cdf0e10cSrcweir break; 47cdf0e10cSrcweir case x_UnexpectedEOF: 48cdf0e10cSrcweir o_rOutputMedium << "Unexpected end of file found." << Endl(); 49cdf0e10cSrcweir break; 50cdf0e10cSrcweir default: 51cdf0e10cSrcweir o_rOutputMedium << "Unknown exception during parsing." << Endl(); 52cdf0e10cSrcweir } 53cdf0e10cSrcweir } 54cdf0e10cSrcweir 55cdf0e10cSrcweir 56