1
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
3
* MAUS is free software: you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License as published by
5
* the Free Software Foundation, either version 3 of the License, or
6
* (at your option) any later version.
8
* MAUS is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with MAUS. If not, see <http://www.gnu.org/licenses/>.
17
/** @class MapCppPrint
18
* Prints out the JSON input and returns input
20
* This class is meant to be a debugging and simple example class
21
* to illustrate using JSON from within C++.
24
#ifndef _COMPONENTS_MAP_MAPCPPPRINT_H_
25
#define _COMPONENTS_MAP_MAPCPPPRINT_H_
27
#include <json/json.h>
34
/** Sets up the worker
36
* \param argJsonConfigDocument a JSON document with
39
bool birth(std::string argJsonConfigDocument);
41
/** Shutdowns the worker
43
* This takes no arguments and does nothing
47
/** process and print JSON input
49
* \param document JSON spill to send to std::out
51
std::string process(std::string document);
54
std::string _classname;
55
}; // Don't forget this trailing colon!!!!
57
#endif // _COMPONENTS_MAP_MAPCPPPRINT_H_