summaryrefslogtreecommitdiffstats
path: root/yql/essentials/utils/docs/resource.h
blob: 0221b5ed9fc901b731ac81b62ca63cb18e8c0db4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <util/generic/string.h>
#include <util/generic/hash.h>
#include <util/generic/maybe.h>

namespace NYql::NDocs {

    struct TResourceFilter {
        TString BaseDirectorySuffix;
        TString CutSuffix;
    };

    using TResourcesByRelativePath = THashMap<TString, TString>;

    // Useful when YaTool ALL_RESOURCE_FILES macro is used.
    TResourcesByRelativePath FindResources(const TResourceFilter& filter);

} // namespace NYql::NDocs