55#include " ./helper.hpp"
66#include < core/helper/expected.hpp>
77#include < core/helper/types.hpp>
8+ #include < core/helper/windows.hpp>
89
910#include < fmt/format.h>
1011#include < fmt/ranges.h>
@@ -64,7 +65,7 @@ namespace recorder {
6465 return m_value;
6566 }
6667
67- [[nodiscard]] std::string to_string (u32 recursion_depth = 0 ) const ;
68+ OOPETRIS_EXPORTED [[nodiscard]] std::string to_string (u32 recursion_depth = 0 ) const ;
6869
6970 template <typename T>
7071 [[nodiscard]] bool operator ==(const T& other) const { // NOLINT(misc-no-recursion)
@@ -114,13 +115,13 @@ namespace recorder {
114115 );
115116 }
116117
117- static helper::expected<std::pair<std::string, InformationValue>, std::string> read_from_istream (
118+ OOPETRIS_EXPORTED static helper::expected<std::pair<std::string, InformationValue>, std::string> read_from_istream (
118119 std::istream& istream
119120 );
120121
121- [[nodiscard]] helper::expected<std::vector<char >, std::string> to_bytes (u32 recursion_depth = 0 ) const ;
122+ OOPETRIS_EXPORTED [[nodiscard]] helper::expected<std::vector<char >, std::string> to_bytes (u32 recursion_depth = 0 ) const ;
122123
123- [[nodiscard]] static std::vector<char > string_to_bytes (const std::string& value);
124+ OOPETRIS_EXPORTED [[nodiscard]] static std::vector<char > string_to_bytes (const std::string& value);
124125
125126 private:
126127 static helper::expected<std::string, std::string> read_string_from_istream (std::istream& istream);
@@ -141,22 +142,21 @@ namespace recorder {
141142 explicit AdditionalInformation (UnderlyingContainer&& values);
142143
143144 public:
144- explicit AdditionalInformation ();
145+ OOPETRIS_EXPORTED explicit AdditionalInformation ();
145146
146- static helper::expected<AdditionalInformation, std::string> from_istream (std::istream& istream);
147+ OOPETRIS_EXPORTED static helper::expected<AdditionalInformation, std::string> from_istream (std::istream& istream);
147148
148-
149- void add_value (const std::string& key, const InformationValue& value, bool overwrite = false );
149+ OOPETRIS_EXPORTED void add_value (const std::string& key, const InformationValue& value, bool overwrite = false );
150150
151151 template <typename T>
152152 void add (const std::string& key, const T& raw_value, bool overwrite = false ) {
153153 const auto value = InformationValue{ raw_value };
154154 add_value (key, value, overwrite);
155155 }
156156
157- [[nodiscard]] std::optional<InformationValue> get (const std::string& key) const ;
157+ OOPETRIS_EXPORTED [[nodiscard]] std::optional<InformationValue> get (const std::string& key) const ;
158158
159- [[nodiscard]] bool has (const std::string& key) const ;
159+ OOPETRIS_EXPORTED [[nodiscard]] bool has (const std::string& key) const ;
160160
161161 template <typename T>
162162 [[nodiscard]] std::optional<T> get_if (const std::string& key) const {
@@ -174,9 +174,9 @@ namespace recorder {
174174 return value.as <T>();
175175 }
176176
177- [[nodiscard]] helper::expected<std::vector<char >, std::string> to_bytes () const ;
177+ OOPETRIS_EXPORTED [[nodiscard]] helper::expected<std::vector<char >, std::string> to_bytes () const ;
178178
179- [[nodiscard]] helper::expected<Sha256Stream::Checksum, std::string> get_checksum () const ;
179+ OOPETRIS_EXPORTED [[nodiscard]] helper::expected<Sha256Stream::Checksum, std::string> get_checksum () const ;
180180
181181 // iterator trait
182182 using iterator = UnderlyingContainer::iterator; // NOLINT(readability-identifier-naming)
@@ -188,13 +188,13 @@ namespace recorder {
188188 using iterator_category = std::bidirectional_iterator_tag; // NOLINT(readability-identifier-naming)
189189
190190
191- [[nodiscard]] iterator begin ();
191+ OOPETRIS_EXPORTED [[nodiscard]] iterator begin ();
192192
193- [[nodiscard]] const_iterator begin () const ;
193+ OOPETRIS_EXPORTED [[nodiscard]] const_iterator begin () const ;
194194
195- [[nodiscard]] iterator end ();
195+ OOPETRIS_EXPORTED [[nodiscard]] iterator end ();
196196
197- [[nodiscard]] const_iterator end () const ;
197+ OOPETRIS_EXPORTED [[nodiscard]] const_iterator end () const ;
198198 };
199199
200200 STATIC_ASSERT_WITH_MESSAGE (
0 commit comments