You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
923 B
25 lines
923 B
#include "common.h"
|
|
#include "Zi.h"
|
|
#include "User.h"
|
|
#include "Document.h"
|
|
#include "Autoritate.h"
|
|
|
|
int main(){
|
|
Zi azi(20, 5, 2025);
|
|
Zi dExpir(30, 5, 2026);
|
|
ZiuaDeAzi* _azi = ZiuaDeAzi::getInstance();
|
|
_azi->setZiuaDeAzi(azi);
|
|
|
|
dExpir.verifExpirare();
|
|
Autoritate xxx = Autoritate("DRPCIV", "DRPCIV", "pulapulapizdapizda");
|
|
User ion = User("abc", "Popescu Ion", "pulanpizda");
|
|
std::cout << ion;
|
|
|
|
//Document doc("Permis de Conducere Digital", &ion, &xxx, "B: 20/01/2025\nB1: 20/01/2025\nAM: 20/01/2025", &azi, &dExpir);
|
|
Document* doc = xxx.emiteDocument("Permis de Conducere Digital", "B: 20/01/2025\nB1: 20/01/2025\nAM: 20/01/2025", &ion, &azi, &dExpir);
|
|
xxx.emiteAnexa(doc, "DOAR AUTOMATA | COD: 87");
|
|
xxx.emiteAnexa(doc, "PERMIS RETINUT PENTRU CA E UN BETIV INFECT");
|
|
std::cout << *doc;
|
|
std::cout << std::endl;
|
|
std::cout << hashString(doc->exportForSigning());
|
|
} |