Particle Identification and Tracking
mm_md_parser.h
Go to the documentation of this file.
1 //Copyright 2010,2011 Thomas A Caswell
2 //tcaswell@uchicago.edu
3 //http://jfi.uchicago.edu/~tcaswell
4 //
5 //This program is free software; you can redistribute it and/or modify
6 //it under the terms of the GNU General Public License as published by
7 //the Free Software Foundation; either version 3 of the License, or (at
8 //your option) any later version.
9 //
10 //This program is distributed in the hope that it will be useful, but
11 //WITHOUT ANY WARRANTY; without even the implied warranty of
12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 //General Public License for more details.
14 //
15 //You should have received a copy of the GNU General Public License
16 //along with this program; if not, see <http://www.gnu.org/licenses>.
17 //
18 //Additional permission under GNU GPL version 3 section 7
19 //
20 //If you modify this Program, or any covered work, by linking or
21 //combining it with MATLAB (or a modified version of that library),
22 //containing parts covered by the terms of MATLAB User License, the
23 //licensors of this Program grant you additional permission to convey
24 //the resulting work.
25 //
26 //If you modify this Program, or any covered work, by linking or
27 //combining it with IPP (or a modified version of that library),
28 //containing parts covered by the terms of End User License Agreement
29 //for the Intel(R) Software Development Products, the licensors of
30 //this Program grant you additional permission to convey the resulting
31 //work.
32 //
33 //If you modify this Program, or any covered work, by linking or
34 //combining it with FreeImage (or a modified version of that library),
35 //containing parts covered by the terms of End User License Agreement
36 //for FreeImage Public License, the licensors of
37 //this Program grant you additional permission to convey the resulting
38 //work.
39 
40 
41 
42 #ifndef MM_MD_PARSER
43 #define MM_MD_PARSER
44 #include "md_parser.h"
45 #include <xercesc/util/XercesDefs.hpp>
46 class fipImage;
47 
48 
49 
50 XERCES_CPP_NAMESPACE_BEGIN
51 class DOMNode;
52 
53 XERCES_CPP_NAMESPACE_END
54 
55 
56 namespace utilities
57 {
58 class Md_store;
59 }
60 
61 namespace iden
62 {
67 class Mm_md_parser : public MD_parser
68 {
69 public:
70  Mm_md_parser();
71  ~Mm_md_parser();
72  utilities::Md_store * parse_md(const fipImage & img_in) const ;
73 
74 private:
75  XMLCh* elm_name_ ;
76  XMLCh* key_str_ ;
77  XMLCh* type_str_ ;
78  XMLCh* value_str_;
79  XMLCh* pram_str_ ;
80 
81 
82  void parse_elements(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* pram_elm, utilities::Md_store * store)const;
83 
84 
85 
86 };
87 
88 }
89 
90 
91 #endif