https://github.com/archo5/metaprop
C++ object metadata compiler & access system
https://github.com/archo5/metaprop
Last synced: 3 months ago
JSON representation
C++ object metadata compiler & access system
- Host: GitHub
- URL: https://github.com/archo5/metaprop
- Owner: archo5
- License: mit
- Created: 2016-04-10T17:49:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-21T05:37:00.000Z (about 9 years ago)
- Last Synced: 2025-01-02T17:47:00.740Z (5 months ago)
- Language: C++
- Size: 57.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MetaProp
C++ object metadata compiler & access system## Why?
C++ has no built-in support for object metadata, property iteration, smart automated structure dumping etc.
This project tries to makes that easier.## Usage
- Download [SGScript virtual machine](http://www.sgscript.org/#download), unpack somewhere & add to PATH.
- Put `mpdgen.sgs` in virtual machine directory.
- Describe your data structures as shown in the [metaprop.mpd.sgs](metaprop.mpd.sgs) file.
- Add compile step `sgsvm -p mpdgen > `
- Include generated `` in your source code after structure definitions
- For detailed usage examples, please see [metaprop.cpp](metaprop.cpp).## Features
- Property enumeration, search
- Property access (read/write, optional getters & setters)
- Access by index (like `operator []`, optional getters & setters)
- Structure printing (`mpd_DumpInfo`)
- Data printing (`mpd_DumpData`)
- Data structure traversal
- `enum` info access
- C++03 & C++11 support