AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
placeholders.hpp
1/*
2 ANCH Framework: ANother C++ Hack is a C++ framework based on C++23 standard
3 Copyright (C) 2012 Vincent Lachenal
4
5 This file is part of ANCH Framework.
6
7 ANCH Framework is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 ANCH Framework is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with ANCH Framework. If not, see <https://www.gnu.org/licenses/>.
19*/
20#pragma once
21
22#include "anch-conf-export.hpp"
23
24#include <cstddef>
25
26#include "conf/section.hpp"
27#include "conf/confError.hpp"
28
29namespace anch::conf {
30
57 class ANCH_CONF_EXPORT Placeholders {
58
59 // Attributes +
60 public:
62 static constexpr std::size_t DEFAULT_MAX_DEPTH = 64;
63
64 private:
66 anch::conf::Section& _section;
67
69 std::size_t _maxDepth;
70 // Attributes -
71
72 // Constructors +
73 public:
80 explicit Placeholders(anch::conf::Section& section, std::size_t maxDepth = DEFAULT_MAX_DEPTH) noexcept;
81
83 Placeholders(const Placeholders&) = delete;
84 // Constructors -
85
86 // Destructor +
87 public:
91 virtual ~Placeholders() noexcept;
92 // Destructor -
93
94 // Methods +
95 public:
103 std::size_t resolve();
104
106 Placeholders& operator=(const Placeholders&) = delete;
107 // Methods -
108
109 };
110
111}
virtual ~Placeholders() noexcept
Placeholders(anch::conf::Section &section, std::size_t maxDepth=DEFAULT_MAX_DEPTH) noexcept
Placeholders(const Placeholders &)=delete
static constexpr std::size_t DEFAULT_MAX_DEPTH
Definition placeholders.hpp:62
AnCH configuration library namespace.
anch::ini::Section Section
Definition section.hpp:27