-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcdb_database_impl.hpp
More file actions
36 lines (25 loc) · 814 Bytes
/
cdb_database_impl.hpp
File metadata and controls
36 lines (25 loc) · 814 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 "compilation_db/api/cdb_database.hpp"
#include <memory>
#include <vector>
//------------------------------------------------------------------------------
namespace compilation_db
{
//------------------------------------------------------------------------------
class DatabaseImpl final : public Database
{
public:
DatabaseImpl();
~DatabaseImpl() override;
IndexType getCount() const override;
const CommandObject & getObject( IndexType _index ) const override;
void addCommand(
std::string_view _directory,
std::string_view _command,
std::string_view _file ) override;
private:
using CommandObjectPtr = std::unique_ptr< CommandObject >;
std::vector< CommandObjectPtr > m_objects;
};
//------------------------------------------------------------------------------
}