#include <stdexcept>
#include <string>
#include <string_view>
Go to the source code of this file.
|
| enum class | mazes::output_format : unsigned int {
PLAIN_TEXT = 0
, JSON_FILE = 1
, WAVEFRONT_OBJECT_FILE = 2
, STDOUT = 3
,
TOTAL = 4
} |
| | Enum class for output_format types.
|
| |
|
|
constexpr std::string_view | mazes::JSON_FILE_FORMAT_STR = "json" |
| |
|
constexpr std::string_view | mazes::WAVEFRONT_OBJECT_FILE_FORMAT_STR = "obj" |
| |
|
constexpr std::string_view | mazes::STDOUT_FORMAT_STR = "stdout" |
| |
|
constexpr std::string_view | mazes::PLAIN_TEXT_FORMAT_STR = "txt" |
| |
◆ to_output_format_from_sv()
| output_format mazes::to_output_format_from_sv |
( |
const std::string_view | sv | ) |
|
|
inline |
Convert a string to an output_format enum.
- Parameters
-
- Returns
◆ to_sv_from_output_format()
| std::string_view mazes::to_sv_from_output_format |
( |
output_format | of | ) |
|
|
inline |
Convert an output_format enum to a string.
- Parameters
-
- Returns