WIP: remove the old database abstraction layer

remove such classes:
- DbBase
- DbConn
- DbTextStream
- Db

while here:
- remove: TextStream, SLog, TexTextStream
This commit is contained in:
2024-06-22 18:03:54 +02:00
parent 5d457f3d4b
commit 6aa100f12c
138 changed files with 6658 additions and 12402 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2014, Tomasz Sowa
* Copyright (c) 2008-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -36,73 +36,32 @@
#define headerfile_winix_plugins_ticket_ticket
#include <vector>
#include <string>
#include <algorithm>
#include "ticketparam.h"
namespace Winix
namespace Winix::Ticket
{
namespace Ticket
class Ticket
{
public:
struct Ticket
{
struct TicketParam
{
long param;
long intv;
std::wstring decv; // !! temporarily as a string (in the future there'll be a Dec type from ttmath)
void Clear()
{
param = 0;
intv = 0;
decv.clear();
}
TicketParam()
{
Clear();
}
};
Ticket();
long file_id;
typedef std::vector<TicketParam> ParTab;
ParTab par_tab;
void Clear();
void SortParTab();
Ticket()
{
Clear();
}
void Clear()
{
file_id = -1;
par_tab.clear();
}
struct Sort
{
bool operator()(const TicketParam & par1, const TicketParam & par2)
{
return par1.param < par2.param;
}
};
void SortParTab()
{
std::sort(par_tab.begin(), par_tab.end(), Sort());
}
};
} // namespace
} // namespace Winix
}
#endif