-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpr_include_file.hpp
More file actions
48 lines (38 loc) · 851 Bytes
/
pr_include_file.hpp
File metadata and controls
48 lines (38 loc) · 851 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
40
41
42
43
44
45
46
47
48
#pragma once
#include "parser/api/pr_include_file_location.hpp"
#include <string>
//------------------------------------------------------------------------------
namespace parser
{
//------------------------------------------------------------------------------
class IncludeFile
{
public:
IncludeFile(
const IncludeFileLocation & _location,
std::string_view _name,
bool _isSystem )
: m_location{ _location }
, m_name{ _name }
, m_isSystem{ _isSystem }
{
}
const IncludeFileLocation & getLocation() const
{
return m_location;
}
std::string_view getName() const
{
return m_name;
}
bool isSystem() const
{
return m_isSystem;
}
private:
const IncludeFileLocation m_location;
const std::string m_name;
const bool m_isSystem;
};
//------------------------------------------------------------------------------
}