aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/index/dummyfileheadercontext.h
blob: 87cffc94733bdab7e15aee1acc84cba3e51d4fa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/searchlib/common/fileheadercontext.h>

namespace vespalib { class GenericHeader; }

namespace search::index {

class DummyFileHeaderContext : public common::FileHeaderContext {
    bool _disableFileName;
    vespalib::string _hostName;
    pid_t _pid;

    static vespalib::string _creator;
public:
    DummyFileHeaderContext();
    ~DummyFileHeaderContext();
    void disableFileName();
    void addTags(vespalib::GenericHeader &header, const vespalib::string &name) const override;
    static void setCreator(const vespalib::string &creator);
};

}