~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/map/MapCppPrint/MapCppPrint.hh

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This file is part of MAUS: http://micewww.pp.rl.ac.uk:8080/projects/maus
2
 
 * 
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.
7
 
 * 
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.
12
 
 * 
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/>.
15
 
 */
16
 
 
17
 
/** @class MapCppPrint
18
 
 *  Prints out the JSON input and returns input
19
 
 *
20
 
 *  This class is meant to be a debugging and simple example class
21
 
 *  to illustrate using JSON from within C++.    
22
 
 */
23
 
 
24
 
#ifndef _COMPONENTS_MAP_MAPCPPPRINT_H_
25
 
#define _COMPONENTS_MAP_MAPCPPPRINT_H_
26
 
 
27
 
#include <json/json.h>
28
 
#include <iostream>
29
 
#include <string>
30
 
#include <sstream>
31
 
 
32
 
class MapCppPrint {
33
 
 public:
34
 
  /** Sets up the worker
35
 
   *
36
 
   *  \param argJsonConfigDocument a JSON document with
37
 
   *         the configuration.
38
 
   */
39
 
  bool birth(std::string argJsonConfigDocument);
40
 
 
41
 
  /** Shutdowns the worker
42
 
   *
43
 
   *  This takes no arguments and does nothing
44
 
   */
45
 
  bool death();
46
 
 
47
 
  /** process and print JSON input
48
 
   *
49
 
   *  \param document JSON spill to send to std::out
50
 
   */
51
 
  std::string process(std::string document);
52
 
 
53
 
 private:
54
 
  std::string _classname;
55
 
};  // Don't forget this trailing colon!!!!
56
 
 
57
 
#endif  //  _COMPONENTS_MAP_MAPCPPPRINT_H_