plugin ticket: rewritten templates ezc functions
(now images/files are working fine) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@795 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -24,7 +24,7 @@ struct Ticket
|
||||
{
|
||||
long param;
|
||||
long intv;
|
||||
std::wstring decv; // !! temporarily as a string (in the future there'll be a Dec type from ttmath)
|
||||
std::wstring decv; // !! temporarily as a string (in the future there'll be a Dec type from ttmath)
|
||||
|
||||
void Clear()
|
||||
{
|
||||
@@ -40,16 +40,19 @@ struct Ticket
|
||||
};
|
||||
|
||||
long file_id;
|
||||
std::vector<TicketParam> par_tab;
|
||||
|
||||
// auxiliary object used during sorting
|
||||
//unsigned long sort_id;
|
||||
typedef std::vector<TicketParam> ParTab;
|
||||
ParTab par_tab;
|
||||
|
||||
|
||||
Ticket()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
||||
void Clear()
|
||||
{
|
||||
file_id = -1;
|
||||
file_id = -1;
|
||||
par_tab.clear();
|
||||
//sort_id = 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,19 +64,11 @@ struct Ticket
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
void SortParTab()
|
||||
{
|
||||
std::sort(par_tab.begin(), par_tab.end(), Sort());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Ticket()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user