#pragma once
#include <string>
#include <tuple>
#include <regex>
using namespace std;
extern const regex datum_minta; // extern: csak mondom, hogy létezik, de nem hozom létre itt
// Dátum formátumok ellenőrzését és bontását végző segédosztály
class DatumKezeles {
public:
// Megnézi, hogy a s string pontosan "YYYY.MM.DD" formátumú-e
static bool ervenyes_datum(const string& s); // static, hogy ne kell példányosítani a DatumKezeles-t ahhoz, hogy meghívhassuk
// A "YYYY.MM.DD" formátumú s stringből visszaadja (év, hónap, nap)
static tuple<int, int, int> bontott_datum(const string& s); // A tuple többértékű adatszerkezet: Hasonló a pair-hez,
// de tetszőleges számú és tetszőleges típusú elemet képes tárolni.
};