NSVD Reader
0.0.1
enum_helper.hpp
Go to the documentation of this file.
1
/*
2
* These codes are licensed under CC0.
3
* http://creativecommons.org/publicdomain/zero/1.0/
4
*/
5
#ifndef __NODAMUSHI_SVD_ENUM_HELPER_HPP__
6
#define __NODAMUSHI_SVD_ENUM_HELPER_HPP__
7
8
# include <string>
9
# include <cstring>
10
# if __cplusplus >= 201703
11
# include <string_view>
12
# include <optional>
13
# endif
14
15
namespace
nodamushi
{
16
namespace
svd{
18
template
<
typename
T>
struct
enum_helper
19
{
21
static
constexpr
bool
HAS_HELPER
=
false
;
22
23
// set enum to dst
24
// static bool get(const std::string &name,T &dst)
25
// static bool get(const char* &name,T &dst)
26
// static bool get(std::string_view name,T &dst)
27
// static const char* nameof(Access value)
28
};
29
30
}
31
}
// end namespace nodamushi
32
33
#endif //__NODAMUSHI_ENUM_HELPER_HPP__
nodamushi::svd::enum_helper
provide getter,setter
Definition:
enum_helper.hpp:18
nodamushi::svd::enum_helper::HAS_HELPER
static constexpr bool HAS_HELPER
enum_helper is defined
Definition:
enum_helper.hpp:21
nodamushi
Definition:
box.hpp:14
include
nodamushi
svd
enum_helper.hpp
Generated by
1.8.15