Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danomatika/tinyobject
(maintained) object base class and convenience static class for the TinyXML-2 xml library
https://github.com/danomatika/tinyobject
Last synced: about 2 months ago
JSON representation
(maintained) object base class and convenience static class for the TinyXML-2 xml library
- Host: GitHub
- URL: https://github.com/danomatika/tinyobject
- Owner: danomatika
- License: gpl-3.0
- Created: 2011-08-21T20:43:22.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2021-08-18T23:07:03.000Z (over 3 years ago)
- Last Synced: 2024-10-15T09:53:27.802Z (3 months ago)
- Language: C++
- Homepage:
- Size: 689 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
tinyobject
==========object base class and convenience static class for TinyXML-2
Copyright (c) [Dan Wilcox](http://danomatika.com) 2009, 2015, 2020
Description
-----------This is a wrapper around the [TinyXML-2 library](http://www.grinninglizard.com/tinyxml2/index.html) to add chainable object loading in classes and automatic loading/saving of primitive types via reference (XMLObject). Also includes a static class (XML) for common data get/set convenience functions. Both classes utilize the "tinyxml" namespace.
Documentation
-------------See the headers in `src/tinyobject` and the [example](https://github.com/danomatika/tinyobject/blob/master/src/totest/main.cpp) in `src/totest` for more info.
Building & Installing
---------------------Download a release tarball from .
Otherwise, if cloning this repo, you will also need to run `autogen.sh` to create the configure script:
git clone https://github.com/danomatika/tinyobject.git
cd tinyobject
./autogen.shYou will need tinyxml2 installed before building. On macOS, you can use [Homebrew](http://brew.sh) with:
brew install tinyxml2
On Ubuntu/Debian, you would do the following:
sudo apt-get install libtinyxml2-dev
On Windows, it is recommended to use [Msys2](https://www.msys2.org). Install the build tool chain (make, gcc or clang, pkgconfig, autconf, automake, libtool) and the tinyxml2 package:
# 32 bit
pacman -S mingw-w64-i686-tinyxml2
# 64 bit
pacman -S mingw-w64-x86_64-tinyxml2This is an automake project, so build the lib & test with:
./configure
makeRun the test program with:
cd src/totest
./totestInstall via:
sudo make install
Developing
----------A Premake4 script and IDE files can be found in the prj folder. Premake4 can generate IDE files from a given lua script. Download Premake4 from .
You can enable a debug build using:
./configure --enable-debug
I develop using an IDE, then update the autotools files when the sources are finished. I run `make distcheck` to make sure the distributable package can be built successfully.
Notes
-----_Note: tinyobject was originally named "xmlframework" in versions prior to 0.3.0_