aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/src/version.cpp
blob: 6b389213d0ae453ca627ebcde36c3a5ab20d2484 (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
25
26
#include <library/cpp/resource/resource.h>

#include <util/string/strip.h>

namespace {
    class TBuiltinVersion {
    public:
        TBuiltinVersion() {
            Version_ = NResource::Find("/builtin/version");
            StripInPlace(Version_);
        }

        TStringBuf Get() const {
            return Version_;
        }

    private:
        TString Version_;
    };
}

namespace NTvmAuth {
    TStringBuf LibVersion() {
        return Singleton<TBuiltinVersion>()->Get();
    }
}