-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathmi_include_impl.cpp
More file actions
69 lines (50 loc) · 1.66 KB
/
mi_include_impl.cpp
File metadata and controls
69 lines (50 loc) · 1.66 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#include "model_includes/impl/mi_include_impl.hpp"
#include "model_includes/api/mi_include_location.hpp"
#include "exception/ih/exc_internal_error.hpp"
//------------------------------------------------------------------------------
namespace model_includes
{
//------------------------------------------------------------------------------
IncludeImpl::IncludeImpl(
IncludeLocationPtr && _location,
const File & _sourceFile,
const File & _destinationFile,
IncludeStatus _status,
IncludeType _type )
: m_location{ std::move( _location ) }
, m_sourceFile{ _sourceFile }
, m_destinationFile{ _destinationFile }
, m_status{ _status }
, m_type{ _type }
{
}
//------------------------------------------------------------------------------
IncludeImpl::~IncludeImpl() = default;
//------------------------------------------------------------------------------
const IncludeLocation & IncludeImpl::getLocation() const
{
INTERNAL_CHECK_ERROR( m_location );
return *m_location;
}
//------------------------------------------------------------------------------
const File & IncludeImpl::getSourceFile() const
{
return m_sourceFile;
}
//------------------------------------------------------------------------------
const File & IncludeImpl::getDestinationFile() const
{
return m_destinationFile;
}
//------------------------------------------------------------------------------
IncludeStatus IncludeImpl::getStatus() const
{
return m_status;
}
//------------------------------------------------------------------------------
IncludeType IncludeImpl::getType() const
{
return m_type;
}
//------------------------------------------------------------------------------
}