root / trunk / tbeta / OSX / addons / ofxXmlSettings / libs / tinyxmlerror.cpp @ 5

View | Annotate | Download (1.8 KB)

1 5 ss
/*
2 5 ss
www.sourceforge.net/projects/tinyxml
3 5 ss
Original code (2.0 and earlier )copyright (c) 2000-2006 Lee Thomason (www.grinninglizard.com)
4 5 ss
5 5 ss
This software is provided 'as-is', without any express or implied
6 5 ss
warranty. In no event will the authors be held liable for any
7 5 ss
damages arising from the use of this software.
8 5 ss
9 5 ss
Permission is granted to anyone to use this software for any
10 5 ss
purpose, including commercial applications, and to alter it and
11 5 ss
redistribute it freely, subject to the following restrictions:
12 5 ss
13 5 ss
1. The origin of this software must not be misrepresented; you must
14 5 ss
not claim that you wrote the original software. If you use this
15 5 ss
software in a product, an acknowledgment in the product documentation
16 5 ss
would be appreciated but is not required.
17 5 ss
18 5 ss
2. Altered source versions must be plainly marked as such, and
19 5 ss
must not be misrepresented as being the original software.
20 5 ss
21 5 ss
3. This notice may not be removed or altered from any source
22 5 ss
distribution.
23 5 ss
*/
24 5 ss
25 5 ss
#include "tinyxml.h"
26 5 ss
27 5 ss
// The goal of the seperate error file is to make the first
28 5 ss
// step towards localization. tinyxml (currently) only supports
29 5 ss
// english error messages, but the could now be translated.
30 5 ss
//
31 5 ss
// It also cleans up the code a bit.
32 5 ss
//
33 5 ss
34 5 ss
const char* TiXmlBase::errorString[ TIXML_ERROR_STRING_COUNT ] =
35 5 ss
{
36 5 ss
        "No error",
37 5 ss
        "Error",
38 5 ss
        "Failed to open file",
39 5 ss
        "Memory allocation failed.",
40 5 ss
        "Error parsing Element.",
41 5 ss
        "Failed to read Element name",
42 5 ss
        "Error reading Element value.",
43 5 ss
        "Error reading Attributes.",
44 5 ss
        "Error: empty tag.",
45 5 ss
        "Error reading end tag.",
46 5 ss
        "Error parsing Unknown.",
47 5 ss
        "Error parsing Comment.",
48 5 ss
        "Error parsing Declaration.",
49 5 ss
        "Error document empty.",
50 5 ss
        "Error null (0) or unexpected EOF found in input stream.",
51 5 ss
        "Error parsing CDATA.",
52 5 ss
        "Error when TiXmlDocument added to document, because TiXmlDocument can only be at the root.",
53 5 ss
};