3

All,

Does anyone know of a tool that can create vanilla POD-like C++ structures from a Schema description?

Important qualities are:

  • reasonable to use as "first class citizens" inside of the code.
  • aggregates are packed just like native arrays.
  • other, interactive language support ( i.e. Python or Matlab. )
    • use of each languages native-types a plus.
  • default and valid values defined and used.

Nice to haves are:

  • no implicit use of the heap ( explicit through the schema would be okay )
  • very light API ( no API is okay; element-name accessors-by-reference are okay; get_foo/set_foo is tolerable but discouraged. )

I've played with Google Protocol-Buffers briefly. It appears that a "repeated" & "packed" primitive satisfies one of my conditions, but the API is not designed for this use.

Context: I'm looking to write portable, high-performance code, ( thus must of my requirements, ) where intermediate products can be loaded / saved and then inspected and manipulated by proper analysis / scripting languages. The data structures are always changing, thus needing a way to auto-generate the classes for all languages involved.

Jonas
  • 121,568
  • 97
  • 310
  • 388
Charles L Wilcox
  • 1,126
  • 8
  • 18
  • I think I'm looking for the same thing... http://stackoverflow.com/questions/13073930/conversion-between-c-structs-c-pod-and-google-protobufs – Andrew Wagner Oct 25 '12 at 17:32
  • Possible duplicate: https://stackoverflow.com/questions/64558881/plain-struct-from-protocol-buffer-message – jpa Jan 03 '21 at 15:40

0 Answers0