summaryrefslogtreecommitdiff
path: root/glcdskin/parser.h
blob: 855c626117067901b966931583089a678d40f1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * GraphLCD skin library
 *
 * parser.h  -  xml parsing
 *
 * This file is released under the GNU General Public License. Refer
 * to the COPYING file distributed with this package.
 *
 * based on text2skin
 *
 */

#ifndef _GLCDSKIN_PARSER_H_
#define _GLCDSKIN_PARSER_H_


#include <string>

// max. version of skin definitions supported by the parser
#define GLCDSKIN_SKIN_VERSION    1.2


namespace GLCD
{

class cSkin;
class cSkinConfig;

cSkin * XmlParse(cSkinConfig & Config, const std::string & name, const std::string & fileName, std::string & errorString);

// provide old function for compatibility
cSkin * XmlParse(cSkinConfig & Config, const std::string & name, const std::string & fileName)
{ std::string errorString = "";
  return XmlParse(Config, name, fileName, errorString);
}

} // end of namespace

#endif