mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 00:26:19 +08:00
Deployed 7ac6e2e with MkDocs version: 1.6.1
This commit is contained in:
@@ -1308,6 +1308,10 @@
|
||||
<h3> Why do we need this?</h3>
|
||||
|
||||
<p>Suppose your C++ program has complex data structures it needs to save and load. Or maybe it needs to interact with some kind of external API. If you do this the traditional way, you will have a lot of boilerplate code. This is annoying and error-prone.</p>
|
||||
<div class="admonition example">
|
||||
<p class="admonition-title">Example</p>
|
||||
<p>If you are new to reflect-cpp, please refer to our <a href="https://github.com/getml/reflect-cpp">GitHub repository</a> for the latest list of supported <a href="https://github.com/getml/reflect-cpp#serialization-formats">serialization formats</a>. You will also find a <a href="https://github.com/getml/reflect-cpp#simple-example">simple</a> and <a href="https://github.com/getml/reflect-cpp#more-comprehensive-example">more comprehensive code example</a>.</p>
|
||||
</div>
|
||||
<p>reflect-cpp is not just a reflection library, it is for <strong>serialization, deserialization and validation</strong> through reflection.</p>
|
||||
<p>That means that you can encode your requirements about the input data in the type system and have them validated upfront. This is why the library also includes algebraic data types like tagged unions and numerous validation routines. Having your requirements encoded in the type system is the most reliable way of ensuring they are met. If your requirements are not met, the user of your software gets a very clear error message. Encoding your requirements in the type system also makes it a lot easier for anyone reading your code.</p>
|
||||
<p>This increases user experience and developer experience, it makes your code safer (fewer bugs) and more secure (less prone to malicious attacks).</p>
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
+49
-49
@@ -2,198 +2,198 @@
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/anonymous_fields/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/as/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/backwards_compatability/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/benchmarks/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/bytestring/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/c_arrays_and_inheritance/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/composing_validators/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/contributing/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/custom_parser/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/docs-readme/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/enums/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/extra_fields/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/flatten_structs/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/generic/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/install/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/literals/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/named_tuple/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/number_systems/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/object/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/optional_fields/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/patterns/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/people/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/replace/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/result/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/rfl_ref/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/rfl_skip/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/rfl_tuple/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/size_validation/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/standard_containers/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/timestamps/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/to_view/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/validating_numbers/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/variants_and_tagged_unions/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/concepts/custom_classes/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/concepts/field_syntax/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/concepts/processors/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/concepts/structs/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/bson/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/cbor/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/flexbuffers/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/json/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/json_schema/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/msgpack/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/supporting_your_own_format/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/toml/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/ubjson/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/xml/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://rfl.getml.com/supported_formats/yaml/</loc>
|
||||
<lastmod>2024-11-12</lastmod>
|
||||
<lastmod>2024-11-14</lastmod>
|
||||
</url>
|
||||
</urlset>
|
||||
Binary file not shown.
Reference in New Issue
Block a user