Deployed 967cda4 with MkDocs version: 1.6.1

This commit is contained in:
liuzicheng1987
2024-12-01 13:02:32 +00:00
parent 525994ddbe
commit 42e5eeeb61
7 changed files with 162 additions and 84 deletions
+99 -21
View File
@@ -828,10 +828,10 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#option-1-using-conan" class="md-nav__link">
<a href="#option-1-using-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
Option 1: Using Conan
Option 1: Using vcpkg
</span>
</a>
@@ -839,10 +839,10 @@
</li>
<li class="md-nav__item">
<a href="#option-2-compilation-using-cmake" class="md-nav__link">
<a href="#option-2-using-conan" class="md-nav__link">
<span class="md-ellipsis">
Option 2: Compilation using cmake
Option 2: Using Conan
</span>
</a>
@@ -850,10 +850,10 @@
</li>
<li class="md-nav__item">
<a href="#option-3-include-source-files-into-your-own-build" class="md-nav__link">
<a href="#option-3-compilation-using-cmake" class="md-nav__link">
<span class="md-ellipsis">
Option 3: Include source files into your own build
Option 3: Compilation using cmake
</span>
</a>
@@ -861,10 +861,10 @@
</li>
<li class="md-nav__item">
<a href="#option-4-compilation-using-cmake-and-vcpkg" class="md-nav__link">
<a href="#option-4-include-source-files-into-your-own-build" class="md-nav__link">
<span class="md-ellipsis">
Option 4: Compilation using cmake and vcpkg
Option 4: Include source files into your own build
</span>
</a>
@@ -872,6 +872,18 @@
</li>
<li class="md-nav__item">
<a href="#option-5-compilation-using-cmake-and-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
Option 5: Compilation using cmake and vcpkg
</span>
</a>
<nav class="md-nav" aria-label="Option 5: Compilation using cmake and vcpkg">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#troubleshooting-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
@@ -880,6 +892,22 @@
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#option-6-compilation-using-conan" class="md-nav__link">
<span class="md-ellipsis">
Option 6: Compilation using Conan
</span>
</a>
</li>
</ul>
@@ -2309,10 +2337,10 @@
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#option-1-using-conan" class="md-nav__link">
<a href="#option-1-using-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
Option 1: Using Conan
Option 1: Using vcpkg
</span>
</a>
@@ -2320,10 +2348,10 @@
</li>
<li class="md-nav__item">
<a href="#option-2-compilation-using-cmake" class="md-nav__link">
<a href="#option-2-using-conan" class="md-nav__link">
<span class="md-ellipsis">
Option 2: Compilation using cmake
Option 2: Using Conan
</span>
</a>
@@ -2331,10 +2359,10 @@
</li>
<li class="md-nav__item">
<a href="#option-3-include-source-files-into-your-own-build" class="md-nav__link">
<a href="#option-3-compilation-using-cmake" class="md-nav__link">
<span class="md-ellipsis">
Option 3: Include source files into your own build
Option 3: Compilation using cmake
</span>
</a>
@@ -2342,10 +2370,10 @@
</li>
<li class="md-nav__item">
<a href="#option-4-compilation-using-cmake-and-vcpkg" class="md-nav__link">
<a href="#option-4-include-source-files-into-your-own-build" class="md-nav__link">
<span class="md-ellipsis">
Option 4: Compilation using cmake and vcpkg
Option 4: Include source files into your own build
</span>
</a>
@@ -2353,6 +2381,18 @@
</li>
<li class="md-nav__item">
<a href="#option-5-compilation-using-cmake-and-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
Option 5: Compilation using cmake and vcpkg
</span>
</a>
<nav class="md-nav" aria-label="Option 5: Compilation using cmake and vcpkg">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#troubleshooting-vcpkg" class="md-nav__link">
<span class="md-ellipsis">
@@ -2361,6 +2401,22 @@
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#option-6-compilation-using-conan" class="md-nav__link">
<span class="md-ellipsis">
Option 6: Compilation using Conan
</span>
</a>
</li>
</ul>
@@ -2401,19 +2457,27 @@
- Clang 14.0 or higher
- MSVC 17.8 (19.38) or higher</p>
<p>You can include the source files into your build or compile it using cmake and vcpkg.</p>
<h2 id="option-1-using-conan">Option 1: Using Conan<a class="headerlink" href="#option-1-using-conan" title="Permanent link">&para;</a></h2>
<h2 id="option-1-using-vcpkg">Option 1: Using vcpkg<a class="headerlink" href="#option-1-using-vcpkg" title="Permanent link">&para;</a></h2>
<div class="language-bash highlight"><pre><span></span><code>vcpkg<span class="w"> </span>install<span class="w"> </span>reflectcpp
</code></pre></div>
<p>or, if you are in manifest mode:</p>
<div class="language-bash highlight"><pre><span></span><code>vcpkg<span class="w"> </span>add<span class="w"> </span>port<span class="w"> </span>reflectcpp
</code></pre></div>
<p>If the library cannot be found, please update vcpkg itself to make sure the newest ports are installed. You
might also want to update the <code>builtin-baseline</code> tag in the <em>vcpkg.json</em> of your project.</p>
<h2 id="option-2-using-conan">Option 2: Using Conan<a class="headerlink" href="#option-2-using-conan" title="Permanent link">&para;</a></h2>
<p>Simply use the following <a href="https://conan.io/center/recipes/reflect-cpp">recipe</a>.</p>
<h2 id="option-2-compilation-using-cmake">Option 2: Compilation using cmake<a class="headerlink" href="#option-2-compilation-using-cmake" title="Permanent link">&para;</a></h2>
<h2 id="option-3-compilation-using-cmake">Option 3: Compilation using cmake<a class="headerlink" href="#option-3-compilation-using-cmake" title="Permanent link">&para;</a></h2>
<p>This will compile reflect-cpp with JSON support only. You can then include reflect-cpp in your project and link to the binary.</p>
<div class="language-bash highlight"><pre><span></span><code>cmake<span class="w"> </span>-S<span class="w"> </span>.<span class="w"> </span>-B<span class="w"> </span>build<span class="w"> </span>-DCMAKE_BUILD_TYPE<span class="o">=</span>Release
cmake<span class="w"> </span>--build<span class="w"> </span>build<span class="w"> </span>-j<span class="w"> </span><span class="m">4</span><span class="w"> </span><span class="c1"># gcc, clang</span>
cmake<span class="w"> </span>--build<span class="w"> </span>build<span class="w"> </span>--config<span class="w"> </span>Release<span class="w"> </span>-j<span class="w"> </span><span class="m">4</span><span class="w"> </span><span class="c1"># MSVC</span>
</code></pre></div>
<h2 id="option-3-include-source-files-into-your-own-build">Option 3: Include source files into your own build<a class="headerlink" href="#option-3-include-source-files-into-your-own-build" title="Permanent link">&para;</a></h2>
<h2 id="option-4-include-source-files-into-your-own-build">Option 4: Include source files into your own build<a class="headerlink" href="#option-4-include-source-files-into-your-own-build" title="Permanent link">&para;</a></h2>
<p>Simply copy the contents of the folders <code>include</code> and <code>src</code> into your source repository or add it to your include path and also add <code>src/reflectcpp.cpp</code> and <code>src/reflectcpp_json.cpp</code> and <code>src/yyjson.c</code> to your source files for compilation.
If you want to link to your own version of YYJSON, then only add <code>src/reflectcpp.cpp</code> and <code>src/reflectcpp_json.cpp</code>. If you don't need JSON support, then only add <code>src/reflectcpp.cpp</code>.</p>
<p>If you need support for other serialization formats like flexbuffers or XML, you should also add <code>src/reflectcpp_&lt;format&gt;.cpp</code> and include and link the respective libraries, as listed in the section on serialization formats.</p>
<h2 id="option-4-compilation-using-cmake-and-vcpkg">Option 4: Compilation using cmake and vcpkg<a class="headerlink" href="#option-4-compilation-using-cmake-and-vcpkg" title="Permanent link">&para;</a></h2>
<h2 id="option-5-compilation-using-cmake-and-vcpkg">Option 5: Compilation using cmake and vcpkg<a class="headerlink" href="#option-5-compilation-using-cmake-and-vcpkg" title="Permanent link">&para;</a></h2>
<p>If you want serialization formats other than JSON, you can either install them manually or use vcpkg.</p>
<p>To install vcpkg:</p>
<div class="language-bash highlight"><pre><span></span><code>git<span class="w"> </span>submodule<span class="w"> </span>update<span class="w"> </span>--init
@@ -2435,7 +2499,7 @@ If you want to link to your own version of YYJSON, then only add <code>src/refle
<span class="nb">target_link_libraries</span><span class="p">(</span><span class="s">your_project</span><span class="w"> </span><span class="s">PRIVATE</span><span class="w"> </span><span class="s">reflectcpp</span><span class="p">)</span><span class="w"> </span><span class="c"># Link against the library</span>
</code></pre></div>
<h2 id="troubleshooting-vcpkg">Troubleshooting vcpkg<a class="headerlink" href="#troubleshooting-vcpkg" title="Permanent link">&para;</a></h2>
<h3 id="troubleshooting-vcpkg">Troubleshooting vcpkg<a class="headerlink" href="#troubleshooting-vcpkg" title="Permanent link">&para;</a></h3>
<p>vcpkg is a great, but very ambitious and complex project (just like C++ is a great, but very ambitious and complex language). Here are some of the you might run into and how to resolve them:</p>
<ol>
<li>
@@ -2448,6 +2512,20 @@ If you want to link to your own version of YYJSON, then only add <code>src/refle
<p>On some occasions you might be asked to specify a compiler. You can do so by simply adding it to the cmake command as follows: <code>cmake -S . -B build ... -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++</code> or <code>cmake -S . -B build ... -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17</code> (or whatever supported compiler you would like to use).</p>
</li>
</ol>
<h2 id="option-6-compilation-using-conan">Option 6: Compilation using Conan<a class="headerlink" href="#option-6-compilation-using-conan" title="Permanent link">&para;</a></h2>
<p>To install Conan (assuming you have Python and pipx installed):</p>
<div class="language-bash highlight"><pre><span></span><code>pipx<span class="w"> </span>install<span class="w"> </span>conan
conan<span class="w"> </span>profile<span class="w"> </span>detect
</code></pre></div>
<p>For older versions of pip, you can also use <code>pip</code> instead of <code>pipx</code>.</p>
<p>To install the basic (JSON-only) version, cd into the <code>reflect-cpp</code>
repository and execute the following:</p>
<div class="language-bash highlight"><pre><span></span><code>conan<span class="w"> </span>build<span class="w"> </span>.<span class="w"> </span>--build<span class="o">=</span>missing<span class="w"> </span>-s<span class="w"> </span>compiler.cppstd<span class="o">=</span>gnu20
</code></pre></div>
<p>You can call <code>conan inspect .</code> to get an overview of the supported options.</p>
<p>If you want to include all supported formats, do the following:</p>
<div class="language-bash highlight"><pre><span></span><code>conan<span class="w"> </span>build<span class="w"> </span>.<span class="w"> </span>--build<span class="o">=</span>missing<span class="w"> </span>-s<span class="w"> </span>compiler.cppstd<span class="o">=</span>gnu20<span class="w"> </span>-o<span class="w"> </span>*:with_cbor<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_flatbuffers<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_msgpack<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_toml<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_ubjson<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_xml<span class="o">=</span>True<span class="w"> </span>-o<span class="w"> </span>*:with_yaml<span class="o">=</span>True
</code></pre></div>
+9 -9
View File
@@ -2377,15 +2377,6 @@
<p>The following people maintain the reflect-cpp repository on behalf of the Code17 GmbH. The main author of the library is Dr. Patrick Urbanke (<a href="https://github.com/liuzicheng1987">@liuzicheng1987</a>).</p>
<div class="user-list user-list-center">
<div class="user">
<a href="https://github.com/Urfoex" target="_blank">
<div class="avatar-wrapper">
<img src="https://avatars.githubusercontent.com/u/1561354?v=4"/>
</div>
<div class="title">@Urfoex</div>
</a>
</div>
<div class="user">
<a href="https://github.com/liuzicheng1987" target="_blank">
<div class="avatar-wrapper">
@@ -2395,6 +2386,15 @@
</a>
</div>
<div class="user">
<a href="https://github.com/Urfoex" target="_blank">
<div class="avatar-wrapper">
<img src="https://avatars.githubusercontent.com/u/1561354?v=4"/>
</div>
<div class="title">@Urfoex</div>
</a>
</div>
</div>
<h2 id="contributors">Contributors<a class="headerlink" href="#contributors" title="Permanent link">&para;</a></h2>
Binary file not shown.
+5 -5
View File
@@ -1,14 +1,14 @@
maintainers:
- login: Urfoex
answers: 0
prs: 4
avatarUrl: https://avatars.githubusercontent.com/u/1561354?v=4
url: https://github.com/Urfoex
- login: liuzicheng1987
answers: 0
prs: 65
avatarUrl: https://avatars.githubusercontent.com/u/19538706?u=1ca794b4e5aa9bbe50277f249e701eea86b0fdd3&v=4
url: https://github.com/liuzicheng1987
- login: Urfoex
answers: 0
prs: 4
avatarUrl: https://avatars.githubusercontent.com/u/1561354?v=4
url: https://github.com/Urfoex
experts: []
last_month_active: []
top_contributors:
File diff suppressed because one or more lines are too long
+48 -48
View File
@@ -2,194 +2,194 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://rfl.getml.com/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/as/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/backwards_compatability/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/benchmarks/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/bytestring/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/c_arrays_and_inheritance/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/composing_validators/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/contributing/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/custom_parser/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/docs-readme/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/enums/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/extra_fields/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/flatten_structs/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/generic/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/install/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/literals/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/named_tuple/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/number_systems/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/object/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/optional_fields/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/patterns/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/people/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/replace/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/result/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/rfl_ref/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/rfl_skip/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/rfl_tuple/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/size_validation/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/standard_containers/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/timestamps/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/to_view/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/validating_numbers/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/variants_and_tagged_unions/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/concepts/custom_classes/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/concepts/field_syntax/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/concepts/processors/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/concepts/structs/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/bson/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/cbor/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/flexbuffers/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/json/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/json_schema/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/msgpack/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/supporting_your_own_format/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/toml/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/ubjson/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/xml/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
<url>
<loc>https://rfl.getml.com/supported_formats/yaml/</loc>
<lastmod>2024-11-27</lastmod>
<lastmod>2024-12-01</lastmod>
</url>
</urlset>
BIN
View File
Binary file not shown.