aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/platform/fallback.hh
blob: fd27edbe6d3e62cc2d93c4ee40a453e7f4e11b3d (plain)
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
#pragma once
///@file

#include "local-store.hh"

namespace nix {

/**
 * Fallback platform implementation of LocalStore
 * Exists so we can make LocalStore constructor protected
 */
class FallbackLocalStore : public LocalStore
{
public:
    FallbackLocalStore(const Params & params)
        : StoreConfig(params)
        , LocalFSStoreConfig(params)
        , LocalStoreConfig(params)
        , Store(params)
        , LocalFSStore(params)
        , LocalStore(params)
    {
    }
    FallbackLocalStore(const std::string scheme, std::string path, const Params & params)
        : FallbackLocalStore(params)
    {
        throw UnimplementedError("FallbackLocalStore");
    }
};

}