Git Product home page Git Product logo

acml's Introduction

ACML

Author

Tianjiao Yin <[email protected]>

Deprecated

Warning: I am not going to maintain this project any more since no one use it. This repository will be deleted soon. Fork it if you still want to use this project or even take over it.

Here are some replacements,

  1. https://github.com/Loki-Astari/ThorsSerializer
  2. http://fossil.wanderinghorse.net/repos/nosjob/index.cgi/wiki?name=s11n
  3. https://code.google.com/p/cjson/

Intro

ACML is a header-only C++ xml/json dump/serialization library. It requires C++ Boost Library.

BTW, ACML means "Another C++ struct to Markup Language library".

Quick Start

In the beginning:

struct Person {
    std::string name;
    double height;
    int weight;
    Person(std::string n, double h, int w):
        name(n), height(h), weight(w) {}
};

ACML_REGISTER(Person, ,(name)(height)(weight))

And later:

Person noumi("Kudryavka Anatolyevna Strugatskaya", 1.45, 39);
std::string result = acml::json::dumps(noumi);
std::cout << result << std::endl;

The output is:

{
    "name": "Kudryavka Anatolyevna Strugatskaya",
    "height": "1.45",
    "weight": "39"
}

For Arch Linux Users

Use yaourt -S libacml-git to install it. Examples are placed in /usr/share/doc/acml.

acml's People

Contributors

mizuchi avatar

Watchers

 avatar

Forkers

cnsuhao

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.