OGLplus  (0.59.0) a C++ wrapper for rendering APIs

filesystem.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_VALUE_TREE_FILESYSTEM_HPP
10 #define EAGINE_VALUE_TREE_FILESYSTEM_HPP
11 
12 #include "../config/basic.hpp"
13 #include "../interface.hpp"
14 #include "../main_ctx_fwd.hpp"
15 #include "wrappers.hpp"
16 #include <memory>
17 
18 namespace eagine::valtree {
19 //------------------------------------------------------------------------------
20 struct file_compound_factory : interface<file_compound_factory> {
21  virtual auto make_compound(string_view path, logger&) -> compound = 0;
22 };
23 //------------------------------------------------------------------------------
27  string_view root_path,
29  std::shared_ptr<file_compound_factory> = {}) -> compound;
30 //------------------------------------------------------------------------------
31 } // namespace eagine::valtree
32 
33 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
34 #include <eagine/value_tree/filesystem.inl>
35 #endif
36 
37 #endif // EAGINE_VALUE_TREE_FILESYSTEM_HPP
const main_ctx_object_parent_info & main_ctx_parent
Alias for main_ctx_object_parent_info parameter type.
Definition: main_ctx_fwd.hpp:24
basic_string_span< const char > string_view
Alias for const string views.
Definition: string_span.hpp:116
auto from_filesystem_path(string_view root_path, main_ctx_parent, std::shared_ptr< file_compound_factory >={}) -> compound
Creates a compound representing a filesystem subtree.
Value-tree code is placed in this namespace.
Definition: eagine.hpp:53

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).