-
Notifications
You must be signed in to change notification settings - Fork 4
/
target.h
41 lines (36 loc) · 852 Bytes
/
target.h
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
/**
* Target.h
*
* Extended Yothalot\Target object that is simpler to construct
*
* @author Emiel Bruijntjes <[email protected]>
* @copyright 2016 Copernica BV
*/
/**
* Include guard
*/
#pragma once
/**
* Class definition
*/
class Target : public Yothalot::Target
{
public:
/**
* Constructor
* @param cache cache settings to use
* @param directory directory to use
*/
Target(const std::shared_ptr<Cache> &cache, const char *directory) :
Yothalot::Target(cache->connection(), directory, cache->maxsize(), cache->ttl()) {}
/**
* Constructor
* @param directory directory to use
*/
Target(const char *directory) :
Yothalot::Target(directory) {}
/**
* Destructor
*/
virtual ~Target() = default;
};