added ticket parser: plugins/ticket/ticketparser.h plugins/ticket/ticketparser.cpp

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@663 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-10-11 20:42:49 +00:00
parent 07511a2eb0
commit 33057acd62
23 changed files with 777 additions and 86 deletions

47
plugins/ticket/ticketconf.h Executable file
View File

@@ -0,0 +1,47 @@
#ifndef headerfile_winix_plugins_ticket_ticketconf
#define headerfile_winix_plugins_ticket_ticketconf
#include <vector>
#include <string>
struct TicketConf
{
struct TicketItem
{
struct Select
{
std::string name;
int id;
};
TicketItem();
void Clear();
enum Type { TypeInteger, TypeSelect };
int id;
std::string name;
Type type;
// used when type is TypeInteger
int integer_min, integer_max;
// used when type is TypeSelect
std::vector<Select> select;
size_t select_default;
};
typedef std::vector<TicketItem> Table;
Table tab;
void Clear();
};
#endif