virthttp  0.0
libvirt http interface
general_store.hpp
Go to the documentation of this file.
1 #pragma once
3 #include "config.hpp"
4 
5 class GeneralStore {
6  IniConfig m_config;
7  std::string m_doc_root;
8 
9  public:
11 
12  GeneralStore() = delete;
13  inline GeneralStore(IniConfig conf) : m_config(std::move(conf)), m_doc_root(m_config.http_doc_root) {}
14  GeneralStore(const GeneralStore&) = delete;
15  GeneralStore(GeneralStore&&) = delete;
16  GeneralStore& operator=(const GeneralStore&) = delete;
17  GeneralStore& operator=(GeneralStore&&) = delete;
18  ~GeneralStore() = default;
19 
20  [[nodiscard]] inline const auto& config() const noexcept { return m_config; }
21  [[nodiscard]] inline const auto& doc_root() const noexcept { return m_doc_root; }
22 };
const auto & config() const noexcept
Definition: general_store.hpp:20
Definition: config.hpp:15
STL namespace.
GeneralStore()=delete
AsyncStore async_store
Definition: general_store.hpp:10
const auto & doc_root() const noexcept
Definition: general_store.hpp:21
Definition: async_store.hpp:15
GeneralStore(IniConfig conf)
Definition: general_store.hpp:13
~GeneralStore()=default
GeneralStore & operator=(const GeneralStore &)=delete
Definition: general_store.hpp:5