Code Monkey home page Code Monkey logo

objectpropertytree's Introduction

Object and pointer property tree

This repository contains the source code for the object property tree library. With this library it is easy to create a property tree where objects and pointers can be stored. Nodes can be set and accessed via dot delimited strings.

This library can be particularly useful in a multi-threaded application where objects need to be accessed by different threads.

Building

This library is build using cmake. The library depends on Boost so make sure that you have it installed. To build:

  1. Change directory to the repository's root directory.
  2. Make a build directory mkdir build.
  3. cd build.
  4. Run cmake cmake ...
  5. Make make -j 4.
  6. Install sudo make install.

Documentation

Documentation can be generated using doxygen

  1. Install doxygen sudo apt install doxygen.
  2. Change directory to the repository's root directory.
  3. Run doxygen doxygen Doxyfile.
  4. Open the docs/html/index.html file with you browser.
  5. Read the docs.

Tests

A tests application is supplied with the library. To build it set the variable BUILD_TESTS ON.

cmake -DBUILD_TESTS=ON

This test application can be executed to ensure that the library is working as intended on your system.

The source code of the tests are located in src/tests. The tests for the ObjectPropertyTree class can be used as an example of the use of the library.

Further development

The underlying PropertyTree class is templated such that it will allow any key and value types. This can be used as is or used to facilitate the creation of new types of property trees. If you think that a property tree design you developed based on this library can be useful to others, get in touch.

Contributions

This library is based from work that was developed by Barry Hill.

objectpropertytree's People

Contributors

hicklin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.