Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef H_GLOBALS
- #define H_GLOABLS
- #include <stdio.h>
- #include <iostream>
- #include <string>
- #include <chrono>
- #include <thread>
- #include "ConfigFile.h"
- enum
- {
- LANG,
- SELECT
- };
- class SleepTime {
- public:
- SleepTime iSleep(int time) {
- std::this_thread::sleep_for(std::chrono::seconds(time));
- }
- };
- class SelectLang {
- public:
- SelectLang() {
- ConfigFile cf("config.txt");
- std::string slang;
- slang = (const std::string)cf.Value("Main_Setting", "LANG");
- _Lang[LANG] = slang;
- }
- ~SelectLang() = default;
- const std::string& IsLang() const { return _Lang[LANG]; }
- private:
- std::array<std::string, SELECT> _Lang;
- };
- // Test
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement