From 882afd91325d03ae924fef648d7485295a450b59 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Tue, 14 Nov 2017 01:47:55 +0000 Subject: Add rules presets to resources --- src/main/input-output/sol_preset_types.h | 19 +++++++++++++++++++ src/main/util/util.cpp | 5 +++++ src/main/util/util.h | 14 ++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 src/main/input-output/sol_preset_types.h create mode 100644 src/main/util/util.cpp create mode 100644 src/main/util/util.h (limited to 'src') 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 +#include + +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 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 -- cgit v1.2.1