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:
47
plugins/ticket/ticketconf.h
Executable file
47
plugins/ticket/ticketconf.h
Executable 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
|
||||
|
Reference in New Issue
Block a user