-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmi_file.hpp
More file actions
39 lines (27 loc) · 1012 Bytes
/
mi_file.hpp
File metadata and controls
39 lines (27 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <std_fs>
#include <stdfwd/size_t>
//------------------------------------------------------------------------------
namespace model_includes
{
class Include;
enum class FileType;
//------------------------------------------------------------------------------
class File
{
public:
using IncludeIndex = std::size_t;
using Path = stdfs::path;
virtual ~File() = default;
virtual const Path & getPath() const = 0;
virtual FileType getType() const = 0;
virtual void addInclude( const Include & _include ) = 0;
virtual IncludeIndex getIncludesCount() const = 0;
virtual IncludeIndex getIncludeFilesCountRecursive() const = 0;
virtual const Include & getInclude( IncludeIndex _index ) const = 0;
virtual IncludeIndex getIncludedByCount() const = 0;
virtual IncludeIndex getIncludedByFilesCountRecursive() const = 0;
virtual const Include & getIncludedBy( IncludeIndex _index ) const = 0;
};
//------------------------------------------------------------------------------
}