LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
path_resolver.h
Go to the documentation of this file.
1// Copyright 2021 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6#ifndef DEEPLIMA_INCLUDE_PATH_RESOLVER
7#define DEEPLIMA_INCLUDE_PATH_RESOLVER
8
9#include <string>
10#include <vector>
11
12namespace deeplima
13{
14
16{
17public:
18 PathResolver(const std::string& paths="");
19
20 std::string resolve(const std::string& prefix, const std::string& path, const std::vector<std::string>& accepted_ext = {}) const;
21
22protected:
23 std::string find_user_data_home();
24 void init(const std::string& paths="");
25
26 std::vector<std::string> m_resources_paths;
27};
28
29}
30
31#endif
32
void init(const std::string &paths="")
std::string resolve(const std::string &prefix, const std::string &path, const std::vector< std::string > &accepted_ext={}) const
std::vector< std::string > m_resources_paths
std::string find_user_data_home()