sandbox
Loading...
Searching...
No Matches
field_info.hpp
1// SPDX-License-Identifier: MIT
2#ifndef LIBSBX_SCRIPTING_MANAGED_FIELD_INFO_HPP_
3#define LIBSBX_SCRIPTING_MANAGED_FIELD_INFO_HPP_
4
5#include <vector>
6
7#include <libsbx/scripting/managed/core.hpp>
8#include <libsbx/scripting/managed/string.hpp>
9#include <libsbx/scripting/managed/type.hpp>
10#include <libsbx/scripting/managed/attribute.hpp>
11
12namespace sbx::scripting::managed {
13
15
16 friend class Type;
17
18public:
19
20 auto get_name() const -> string;
21
22 auto get_type() -> type&;
23
24 auto get_accessibility() const -> type_accessibility;
25
26 auto get_attributes() const -> std::vector<attribute>;
27
28private:
29
30 handle _handle = -1;
31 type* _type = nullptr;
32
33}; // class field_info
34
35} // namespace sbx::scripting::managed
36
37#endif // LIBSBX_SCRIPTING_MANAGED_FIELD_INFO_HPP_
Definition: field_info.hpp:14
Definition: string.hpp:11
Definition: type.hpp:11