Added include diagram JSON model generator

This commit is contained in:
Bartek Kryza
2023-03-25 18:18:19 +01:00
parent aa2d3099de
commit 344549ac03
12 changed files with 438 additions and 91 deletions

View File

@@ -17,3 +17,21 @@
*/
#include "source_file.h"
namespace clanguml::common::model {
std::string to_string(source_file_t sf)
{
switch (sf) {
case source_file_t::kDirectory:
return "directory";
case source_file_t::kHeader:
return "header";
case source_file_t::kImplementation:
return "implementation";
default:
assert(false);
}
}
} // namespace clanguml::common::model

View File

@@ -36,6 +36,8 @@ namespace clanguml::common::model {
enum class source_file_t { kDirectory, kHeader, kImplementation };
std::string to_string(source_file_t sf);
struct fs_path_sep {
#ifdef _WIN32
static constexpr std::string_view value = "\\";