aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/common/fileheadercontext.h
blob: 9b6f80c46e79b36c14aba1880ae4ae8cd6143387 (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 Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/stllike/string.h>

namespace vespalib {
    class GenericHeader;
}

namespace search::common {

class FileHeaderContext
{
public:
    FileHeaderContext();
    virtual ~FileHeaderContext();

    virtual void addTags(vespalib::GenericHeader &header, const vespalib::string &name) const = 0;

    static void addCreateAndFreezeTime(vespalib::GenericHeader &header);
    static void setFreezeTime(vespalib::GenericHeader &header);
};

}