/src/WasmEdge/include/po/helper.h
Line | Count | Source (jump to first uncovered line) |
1 | | // SPDX-License-Identifier: Apache-2.0 |
2 | | // SPDX-FileCopyrightText: 2019-2024 Second State INC |
3 | | |
4 | | //===-- wasmedge/po/helper.h - Helper for Initialize Option ---------------===// |
5 | | // |
6 | | // Part of the WasmEdge Project. |
7 | | // |
8 | | //===----------------------------------------------------------------------===// |
9 | | #pragma once |
10 | | |
11 | | #include <string> |
12 | | #include <type_traits> |
13 | | |
14 | | namespace WasmEdge { |
15 | | namespace PO { |
16 | | |
17 | | struct Description { |
18 | 0 | Description(std::string_view Value) noexcept : Value(std::move(Value)) {} |
19 | | std::string_view Value; |
20 | | }; |
21 | | |
22 | | struct MetaVar { |
23 | 0 | MetaVar(std::string_view Value) noexcept : Value(std::move(Value)) {} |
24 | | std::string_view Value; |
25 | | }; |
26 | | |
27 | | template <typename T> struct DefaultValue { |
28 | 0 | DefaultValue(T Value) noexcept : Value(std::move(Value)) {} |
29 | | T Value; |
30 | | }; |
31 | | |
32 | | struct ZeroOrMore {}; |
33 | | struct OneOrMore {}; |
34 | | |
35 | | struct Hidden {}; |
36 | | |
37 | | } // namespace PO |
38 | | } // namespace WasmEdge |