diff options
| author | thecharlesblake | 2017-11-14 01:47:55 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-14 01:47:55 +0000 |
| commit | 882afd91325d03ae924fef648d7485295a450b59 (patch) | |
| tree | 592ebc75006390bb999fb4a444cb16e0f2df994c /src/main | |
| parent | Add rule reading logic to main class (diff) | |
| download | metasol-882afd91325d03ae924fef648d7485295a450b59.tar.gz metasol-882afd91325d03ae924fef648d7485295a450b59.zip | |
Add rules presets to resources
Diffstat (limited to 'src/main')
| -rw-r--r-- | src/main/input-output/sol_preset_types.h | 19 | ||||
| -rw-r--r-- | src/main/util/util.cpp | 5 | ||||
| -rw-r--r-- | src/main/util/util.h | 14 |
3 files changed, 38 insertions, 0 deletions
diff --git a/src/main/input-output/sol_preset_types.h b/src/main/input-output/sol_preset_types.h new file mode 100644 index 0000000..02f602d --- /dev/null +++ b/src/main/input-output/sol_preset_types.h @@ -0,0 +1,19 @@ +// +// Created by thecharlesblake on 11/14/17. +// + +#ifndef SOLVITAIRE_SOL_PRESET_TYPES_H +#define SOLVITAIRE_SOL_PRESET_TYPES_H + +#include <string> +#include <map> + +class sol_preset_types { +public: + static std::string get(const std::string& s); + static bool is_valid_preset(const std::string& s); +private: + static std::map<std::string, std::string> mp; +}; + +#endif //SOLVITAIRE_SOL_PRESET_TYPES_H diff --git a/src/main/util/util.cpp b/src/main/util/util.cpp new file mode 100644 index 0000000..ed46d3b --- /dev/null +++ b/src/main/util/util.cpp @@ -0,0 +1,5 @@ +// +// Created by thecharlesblake on 11/13/17. +// + +#include "util.h" diff --git a/src/main/util/util.h b/src/main/util/util.h new file mode 100644 index 0000000..63b8d0d --- /dev/null +++ b/src/main/util/util.h @@ -0,0 +1,14 @@ +// +// Created by thecharlesblake on 11/13/17. +// + +#ifndef SOLVITAIRE_UTIL_H +#define SOLVITAIRE_UTIL_H + + +class util { + +}; + + +#endif //SOLVITAIRE_UTIL_H |
