Vaucanson  1.4.1
xmleq.hxx
1 // xmleq.hxx: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2004, 2005, 2006, 2007, 2008 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 
18 #ifndef VCSN_XML_XMLEQ_HXX
19 # define VCSN_XML_XMLEQ_HXX
20 
21 namespace vcsn
22 {
23  namespace xml
24  {
25  XMLEq::XMLEq ()
26  {
27  /* tokens */
28 
29  fsmxml = xercesc::XMLString::transcode("fsmxml");
30 
31  valueType = xercesc::XMLString::transcode("valueType");
32  semiring = xercesc::XMLString::transcode("semiring");
33  monoid = xercesc::XMLString::transcode("monoid");
34  genSort = xercesc::XMLString::transcode("genSort");
35  genCompSort = xercesc::XMLString::transcode("genCompSort");
36  genComp = xercesc::XMLString::transcode("genComp");
37  monGen = xercesc::XMLString::transcode("monGen");
38  monCompGen = xercesc::XMLString::transcode("monCompGen");
39 
40  drawing = xercesc::XMLString::transcode("drawingData");
41  geometry = xercesc::XMLString::transcode("geometricData");
42  data = xercesc::XMLString::transcode("data");
43 
44  automaton = xercesc::XMLString::transcode("automaton");
45  content = xercesc::XMLString::transcode("automatonStruct");
46  states = xercesc::XMLString::transcode("states");
47  state = xercesc::XMLString::transcode("state");
48  transitions = xercesc::XMLString::transcode("transitions");
49  transition = xercesc::XMLString::transcode("transition");
50  initial = xercesc::XMLString::transcode("initial");
51  final = xercesc::XMLString::transcode("final");
52 
53  regExp = xercesc::XMLString::transcode("regExp");
54  typedRegExp = xercesc::XMLString::transcode("typedRegExp");
55 
56  label = xercesc::XMLString::transcode("label");
57  sum = xercesc::XMLString::transcode("sum");
58  product = xercesc::XMLString::transcode("product");
59  star = xercesc::XMLString::transcode("star");
60  leftExtMul = xercesc::XMLString::transcode("leftExtMul");
61  rightExtMul = xercesc::XMLString::transcode("rightExtMul");
62  one = xercesc::XMLString::transcode("one");
63  zero = xercesc::XMLString::transcode("zero");
64  monElmt = xercesc::XMLString::transcode("monElmt");
65  weight = xercesc::XMLString::transcode("weight");
66 
67  writingData = xercesc::XMLString::transcode("writingData");
68 
69  /* attributes */
70  identitySymbol = xercesc::XMLString::transcode("identitySym");
71  concat = xercesc::XMLString::transcode("timesSym");
72 
73  openPar = xercesc::XMLString::transcode("openPar");
74  closePar = xercesc::XMLString::transcode("closePar");
75  plusSym = xercesc::XMLString::transcode("plusSym");
76  timesSym = xercesc::XMLString::transcode("timesSym");
77  openWeight = xercesc::XMLString::transcode("weightOpening");
78  closeWeight = xercesc::XMLString::transcode("weightClosing");
79  spacesSym = xercesc::XMLString::transcode("spacesSym");
80  zeroSym = xercesc::XMLString::transcode("zeroSym");
81  starSym = xercesc::XMLString::transcode("starSym");
82 
83  value = xercesc::XMLString::transcode("value");
84  id = xercesc::XMLString::transcode("id");
85  source = xercesc::XMLString::transcode("source");
86  target = xercesc::XMLString::transcode("target");
87  x = xercesc::XMLString::transcode("x");
88  y = xercesc::XMLString::transcode("y");
89 
90  type = xercesc::XMLString::transcode("type");
91  free = xercesc::XMLString::transcode("free");
92  }
93 
94  XMLEq::~XMLEq ()
95  {
96  xercesc::XMLString::release(&fsmxml);
97 
98  xercesc::XMLString::release(&valueType);
99  xercesc::XMLString::release(&semiring);
100  xercesc::XMLString::release(&monoid);
101  xercesc::XMLString::release(&genSort);
102  xercesc::XMLString::release(&genCompSort);
103  xercesc::XMLString::release(&genComp);
104  xercesc::XMLString::release(&monGen);
105  xercesc::XMLString::release(&monCompGen);
106 
107  xercesc::XMLString::release(&drawing);
108  xercesc::XMLString::release(&geometry);
109  xercesc::XMLString::release(&data);
110 
111  xercesc::XMLString::release(&automaton);
112  xercesc::XMLString::release(&content);
113  xercesc::XMLString::release(&states);
114  xercesc::XMLString::release(&state);
115  xercesc::XMLString::release(&transitions);
116  xercesc::XMLString::release(&transition);
117  xercesc::XMLString::release(&initial);
118  xercesc::XMLString::release(&final);
119 
120  xercesc::XMLString::release(&regExp);
121  xercesc::XMLString::release(&typedRegExp);
122 
123  xercesc::XMLString::release(&label);
124  xercesc::XMLString::release(&sum);
125  xercesc::XMLString::release(&product);
126  xercesc::XMLString::release(&star);
127  xercesc::XMLString::release(&leftExtMul);
128  xercesc::XMLString::release(&rightExtMul);
129  xercesc::XMLString::release(&one);
130  xercesc::XMLString::release(&zero);
131  xercesc::XMLString::release(&monElmt);
132  xercesc::XMLString::release(&weight);
133 
134  xercesc::XMLString::release(&writingData);
135 
136  xercesc::XMLString::release(&identitySymbol);
137  xercesc::XMLString::release(&concat);
138 
139  xercesc::XMLString::release(&openPar);
140  xercesc::XMLString::release(&closePar);
141  xercesc::XMLString::release(&plusSym);
142  xercesc::XMLString::release(&timesSym);
143  xercesc::XMLString::release(&openWeight);
144  xercesc::XMLString::release(&closeWeight);
145  xercesc::XMLString::release(&spacesSym);
146  xercesc::XMLString::release(&zeroSym);
147  xercesc::XMLString::release(&starSym);
148 
149  xercesc::XMLString::release(&value);
150  xercesc::XMLString::release(&source);
151  xercesc::XMLString::release(&target);
152  xercesc::XMLString::release(&x);
153  xercesc::XMLString::release(&y);
154 
155  xercesc::XMLString::release(&type);
156  xercesc::XMLString::release(&free);
157  }
158  } // End of namespace xml.
159 } // End of namespace vcsn.
160 
161 #endif // ! VCSN_XML_XMLEQ_HXX