Commit d98fd52
authored
Add support for Json format input files (#118)
This change introduces a JSON parser and serializer for handling
input options. While the overall implementation is incomplete,
key functionality has been added.
Changes:
- Add nlohmann json to CMakeLists.txt
- Update to C++20
- Update CMake version as needed
- Add JsonParser for parsing a single options file
- Add JsonSerializer for serializing a single options file
- Refactor existing serialization to "LegacySerializer"
- Remove:
cvDoubleVec jointXcoord
cvDoubleVec jointYcoord
cvDoubleVec jointZcoord
from options (unused)
- Add "nodeAssociation" to joints list for explicit
node associations in future updates
TODO:
- Add support for nested option files in JSON parser
- Add a converter for legacy format
- Update joint creation to use explicit node associations
- Update legacy parser to provide implicit node associations
so they can be reused
- Verify changes against existing tests
- Add tests for parser, converter, etc.1 parent 4aac52c commit d98fd52
File tree
16 files changed
+1587
-586
lines changed- Code/Source
- Tests/UnitTests
- TestFiles
16 files changed
+1587
-586
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
| |||
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
167 | 184 | | |
168 | 185 | | |
169 | 186 | | |
| |||
0 commit comments