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.
38 lines
546 B
38 lines
546 B
//
|
|
// Created by ioachim on 18.05.2025.
|
|
//
|
|
|
|
#ifndef ZI_H
|
|
#define ZI_H
|
|
#include <mutex>
|
|
|
|
//#include "common.h"
|
|
|
|
class Zi {
|
|
public:
|
|
Zi(int day, int month, int year);
|
|
int day;
|
|
int month;
|
|
int year;
|
|
bool verifExpirare() const;
|
|
};
|
|
|
|
class ZiuaDeAzi {
|
|
private:
|
|
Zi z;
|
|
static ZiuaDeAzi* instance;
|
|
|
|
//static std::mutex mtx;
|
|
|
|
ZiuaDeAzi() : z{12, 12, 12} {}
|
|
public:
|
|
ZiuaDeAzi(const ZiuaDeAzi& obj) = delete;
|
|
static ZiuaDeAzi* getInstance();
|
|
Zi getZiuaDeAzi();
|
|
void setZiuaDeAzi(Zi _z);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //ZI_H
|
|
|