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.

26 lines
457 B

#pragma once
#include <fs.hpp>
#include <json.hpp>
class with_data_directory {
void create_data_directory();
public:
with_data_directory();
5 years ago
static const fs::path &get_path();
};
class data_validator {
json err = json::object({
{"name", json::array()},
{"address", json::array()},
{"phone", json::array()},
{"email", json::array()},
});
int count = 0;
public:
bool validate(const json &);
const json &errors();
};