1
/***************************************************************************
4
begin : Mon Apr 21 2008
5
copyright : (C) 2008 by gruntster
6
***************************************************************************/
8
/***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
17
#ifndef PluginXmlOptions_h
18
#define PluginXmlOptions_h
27
class PluginXmlOptions
30
xmlChar* number2String(xmlChar *buffer, size_t size, int number);
31
xmlChar* number2String(xmlChar *buffer, size_t size, unsigned int number);
32
xmlChar* number2String(xmlChar *buffer, size_t size, float number);
33
xmlChar* boolean2String(xmlChar *buffer, size_t size, bool boolean);
34
bool string2Boolean(char *buffer);
36
virtual char* dumpXmlDocToMemory(xmlDocPtr xmlDoc);
37
virtual bool validateXml(xmlDocPtr doc, const char* schemaFile);
40
virtual char* toXml(PluginXmlType xmlType) = 0;
41
virtual int fromXml(const char *xml, PluginXmlType xmlType) = 0;
44
#endif // PluginXmlOptions_h