Popis: |
In all cases a data structure (or an array of data structures) needs to be serialized or deserialized in the C++ programming language, a developer needs to write his or her own code. If the serialization mechanism needs to accommodate further expansion of the structure or the structure itself contains variable-length fields (especially strings), the required code can quickly grow quite large and may not be reused in further cases. However, using the reflection mechanism described in [1], one can quickly serialize and deserialize any data structure or container with few lines of code. |