-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcprj_project.hpp
More file actions
36 lines (23 loc) · 844 Bytes
/
cprj_project.hpp
File metadata and controls
36 lines (23 loc) · 844 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
#pragma once
#include <stdfwd.hpp>
//------------------------------------------------------------------------------
namespace cmake_project {
//------------------------------------------------------------------------------
class Project
{
public:
using CountType = std::size_t;
using Path = stdfs::path;
using PathCallback = std::function< bool ( const Path & ) >;
virtual ~Project() = default;
virtual CountType getFilePathsCount() const = 0;
virtual void forEachFilePath( PathCallback _callback ) const = 0;
virtual void forEachIncludes(
const Path & _file,
PathCallback _callback
) const = 0;
virtual void addFilePath( const Path & _file ) = 0;
virtual void addIncludeToFile( const Path & _file, const Path & _include ) = 0;
};
//------------------------------------------------------------------------------
}