| 70 | }; |
| 71 | |
| 72 | class Bool final : public Value { |
| 73 | MGB_DYN_TYPE_OBJ_FINAL_DECL_WITH_EXPORT; |
| 74 | |
| 75 | bool m_val; |
| 76 | |
| 77 | public: |
| 78 | Bool(bool v) : m_val(v) {} |
| 79 | |
| 80 | MGE_WIN_DECLSPEC_FUC static std::shared_ptr<Bool> make(bool v); |
| 81 | |
| 82 | MGE_WIN_DECLSPEC_FUC void writeto(std::string& fout, int indent = 0) const override; |
| 83 | |
| 84 | auto&& get_impl() { return m_val; } |
| 85 | |
| 86 | auto&& get_impl() const { return m_val; } |
| 87 | }; |
| 88 | |
| 89 | class String final : public Value { |
| 90 | MGB_DYN_TYPE_OBJ_FINAL_DECL_WITH_EXPORT; |