tinyxmlerror.cpp

Go to the documentation of this file.
00001 /******************************************************************************
00002 *       SOFA, Simulation Open-Framework Architecture, version 1.0 beta 3      *
00003 *                (c) 2006-2008 MGH, INRIA, USTL, UJF, CNRS                    *
00004 *                                                                             *
00005 * This program is free software; you can redistribute it and/or modify it     *
00006 * under the terms of the GNU General Public License as published by the Free  *
00007 * Software Foundation; either version 2 of the License, or (at your option)   *
00008 * any later version.                                                          *
00009 *                                                                             *
00010 * This program is distributed in the hope that it will be useful, but WITHOUT *
00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or       *
00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for    *
00013 * more details.                                                               *
00014 *                                                                             *
00015 * You should have received a copy of the GNU General Public License along     *
00016 * with this program; if not, write to the Free Software Foundation, Inc., 51  *
00017 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.                   *
00018 *******************************************************************************
00019 *                            SOFA :: Applications                             *
00020 *                                                                             *
00021 * Authors: M. Adam, J. Allard, B. Andre, P-J. Bensoussan, S. Cotin, C. Duriez,*
00022 * H. Delingette, F. Falipou, F. Faure, S. Fonteneau, L. Heigeas, C. Mendoza,  *
00023 * M. Nesme, P. Neumann, J-P. de la Plata Alcade, F. Poyer and F. Roy          *
00024 *                                                                             *
00025 * Contact information: contact@sofa-framework.org                             *
00026 ******************************************************************************/
00027 /*
00028 www.sourceforge.net/projects/tinyxml
00029 Original code (2.0 and earlier )copyright (c) 2000-2002 Lee Thomason (www.grinninglizard.com)
00030 
00031 This software is provided 'as-is', without any express or implied 
00032 warranty. In no event will the authors be held liable for any 
00033 damages arising from the use of this software.
00034 
00035 Permission is granted to anyone to use this software for any 
00036 purpose, including commercial applications, and to alter it and 
00037 redistribute it freely, subject to the following restrictions:
00038 
00039 1. The origin of this software must not be misrepresented; you must
00040 not claim that you wrote the original software. If you use this
00041 software in a product, an acknowledgment in the product documentation
00042 would be appreciated but is not required.
00043 
00044 2. Altered source versions must be plainly marked as such, and
00045 must not be misrepresented as being the original software.
00046 
00047 3. This notice may not be removed or altered from any source
00048 distribution.
00049 */
00050 
00051 #include "tinyxml.h"
00052 
00053 // The goal of the seperate error file is to make the first
00054 // step towards localization. tinyxml (currently) only supports
00055 // latin-1, but at least the error messages could now be translated.
00056 //
00057 // It also cleans up the code a bit.
00058 //
00059 
00060 const char* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] =
00061 {
00062     "No error",
00063     "Error",
00064     "Failed to open file",
00065     "Memory allocation failed.",
00066     "Error parsing Element.",
00067     "Failed to read Element name",
00068     "Error reading Element value.",
00069     "Error reading Attributes.",
00070     "Error: empty tag.",
00071     "Error reading end tag.",
00072     "Error parsing Unknown.",
00073     "Error parsing Comment.",
00074     "Error parsing Declaration.",
00075     "Error document empty."
00076 };

Generated on Sun Nov 23 02:28:38 2008 for Sofa by  doxygen 1.5.7.1