winix/plugins/ticket/ticket.h

67 lines
827 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfile_winix_plugins_ticket_ticket
#define headerfile_winix_plugins_ticket_ticket
#include <vector>
#include <string>
namespace Ticket
{
struct Ticket
{
struct TicketParam
{
int param;
long int_value; // changed to long (from int)
std::wstring str_value;
void Clear()
{
// !! what about file_id?
param = 0;
int_value = 0;
str_value.clear();
}
TicketParam()
{
Clear();
}
};
long file_id;
std::vector<TicketParam> par_tab;
// auxiliary object used during sorting
unsigned long sort_id;
void Clear()
{
file_id = -1;
par_tab.clear();
sort_id = 0;
}
Ticket()
{
Clear();
}
};
} // namespace
#endif