aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/util/fileheadertk.h
blob: 60c29f74cf9c791f3df0c2b2ed21b92a9c60f0fd (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
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <vespa/vespalib/data/fileheader.h>

namespace search {

/**
 * This class offers convenience methods to add tags to a GenericHeader.
 */
class FileHeaderTk {
public:
    /**
     * Adds all available version tags to the given header. These tags are set by the build environment and
     * describe things such as build time, build tag, builder, etc.
     *
     * @param header The header to add tags to.
     */
    static void addVersionTags(vespalib::GenericHeader &header);
};

}