diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 13:02:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-25 15:38:53 +0000 |
commit | 00856ee8107fa2d30e324bd6e5bcf3549c1e56d3 (patch) | |
tree | dd2d4f2a69f856fa78302eb6bb60b7a2a7a574ef /autodoc | |
parent | 905b84557d8ccbdba07f0a82a89f382db08fc0d9 (diff) |
callcatcher: update list
Diffstat (limited to 'autodoc')
-rw-r--r-- | autodoc/source/parser/inc/x_parse.hxx | 66 | ||||
-rw-r--r-- | autodoc/source/parser/kernel/x_parse.cxx | 63 |
2 files changed, 1 insertions, 128 deletions
diff --git a/autodoc/source/parser/inc/x_parse.hxx b/autodoc/source/parser/inc/x_parse.hxx deleted file mode 100644 index 593c7661d9bc..000000000000 --- a/autodoc/source/parser/inc/x_parse.hxx +++ /dev/null @@ -1,66 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/************************************************************************* - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * Copyright 2000, 2010 Oracle and/or its affiliates. - * - * OpenOffice.org - a multi-platform office productivity suite - * - * This file is part of OpenOffice.org. - * - * OpenOffice.org is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 3 - * only, as published by the Free Software Foundation. - * - * OpenOffice.org is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License version 3 for more details - * (a copy is included in the LICENSE file that accompanied this code). - * - * You should have received a copy of the GNU Lesser General Public License - * version 3 along with OpenOffice.org. If not, see - * <http://www.openoffice.org/license.html> - * for a copy of the LGPLv3 License. - * - ************************************************************************/ - -#ifndef ADC_X_PARSE_HXX -#define ADC_X_PARSE_HXX - -// BASE CLASSES -#include <autodoc/x_parsing.hxx> - - - - -class X_Parser : public autodoc::X_Parser_Ifc -{ - public: - // LIFECYCLE - X_Parser( - E_Event i_eEvent, - const char * i_sObject, - const String & i_sCausingFile_FullPath, - uintt i_nCausingLineNr ); - ~X_Parser(); - // INQUIRY - virtual E_Event GetEvent() const; - virtual void GetInfo( - std::ostream & o_rOutputMedium ) const; - - private: - E_Event eEvent; - String sObject; - String sCausingFile_FullPath; - uintt nCausingLineNr; - -}; - - - - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/autodoc/source/parser/kernel/x_parse.cxx b/autodoc/source/parser/kernel/x_parse.cxx index f06de7f96f96..8a7c6c670342 100644 --- a/autodoc/source/parser/kernel/x_parse.cxx +++ b/autodoc/source/parser/kernel/x_parse.cxx @@ -27,68 +27,7 @@ ************************************************************************/ #include <precomp.h> -#include <x_parse.hxx> - -// NOT FULLY DECLARED SERVICES - - - -X_Parser::X_Parser( E_Event i_eEvent, - const char * i_sObject, - const String & i_sCausingFile_FullPath, - uintt i_nCausingLineNr ) - : eEvent(i_eEvent), - sObject(i_sObject), - sCausingFile_FullPath(i_sCausingFile_FullPath), - nCausingLineNr(i_nCausingLineNr) -{ -} - -X_Parser::~X_Parser() -{ -} - -X_Parser::E_Event -X_Parser::GetEvent() const -{ - return eEvent; -} - -void -X_Parser::GetInfo( std::ostream & o_rOutputMedium ) const -{ - o_rOutputMedium << "Error in file " - << sCausingFile_FullPath - << " in line " - << nCausingLineNr - << ": "; - - - switch (eEvent) - { - case x_InvalidChar: - o_rOutputMedium << "Unknown character '" - << sObject - << "'"; - break; - case x_UnexpectedToken: - o_rOutputMedium << "Unexpected token \"" - << sObject - << "\""; - break; - case x_UnexpectedEOF: - o_rOutputMedium << "Unexpected end of file."; - break; - case x_UnspecifiedSyntaxError: - o_rOutputMedium << "Unspecified syntax problem in file."; - break; - case x_Any: - default: - o_rOutputMedium << "Unspecified parsing exception."; - } // end switch - o_rOutputMedium << Endl(); -} - +#include <autodoc/x_parsing.hxx> std::ostream & operator<<( std::ostream & o_rOut, |