Added include diagram JSON model generator
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = "\\";
|
||||
|
||||
Reference in New Issue
Block a user