1 // Copyright 2008 Brian Caine
3 // This file is part of Potpourri.
5 // Potpourri 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
8 // (at your option) any later version.
10 // Potpourri is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTIBILITY of FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with Potpourri. If not, see <http://www.gnu.org/licenses/>.
20 // An autogenerated xml parser.
24 #ifndef __PARSEACTOR_H
25 #define __PARSEACTOR_H
28 #include <libxml++/libxml++.h>
55 std::vector
<std::string
> m_pair
;
91 std::vector
<poly
> m_poly
;
92 std::vector
<circle
> m_circle
;
93 std::vector
<line
> m_line
;
105 std::vector
<graphics
> m_graphics
;
107 std::vector
<reaction
> m_reaction
;
110 actor
parseactorFromBuffer(std::string
);
112 float parseelasticity(xmlpp::Node
*);
113 float parsefriction(xmlpp::Node
*);
114 actor
parseactor(xmlpp::Node
*);
115 std::string
parseevent(xmlpp::Node
*);
116 std::string
parsescript(xmlpp::Node
*);
117 reaction
parsereaction(xmlpp::Node
*);
118 std::string
parsepair(xmlpp::Node
*);
119 std::string
parsepair(xmlpp::Node
*);
120 float parseradius(xmlpp::Node
*);
121 std::string
parsepair(xmlpp::Node
*);
122 offset
parseoffset(xmlpp::Node
*);
123 offset
parseoffset(xmlpp::Node
*);
124 std::string
parsepair(xmlpp::Node
*);
125 offset
parseoffset(xmlpp::Node
*);
126 data
parsedata(xmlpp::Node
*);
127 data
parsedata(xmlpp::Node
*);
128 offset
parseoffset(xmlpp::Node
*);
129 poly
parsepoly(xmlpp::Node
*);
130 float parsemass(xmlpp::Node
*);
131 float parseinertia(xmlpp::Node
*);
132 bool parsefixed(xmlpp::Node
*);
133 body
parsebody(xmlpp::Node
*);
134 body
parsebody(xmlpp::Node
*);
135 poly
parsepoly(xmlpp::Node
*);
136 circle
parsecircle(xmlpp::Node
*);
137 line
parseline(xmlpp::Node
*);
138 physics
parsephysics(xmlpp::Node
*);
139 std::string
parsepair(xmlpp::Node
*);
140 pos
parsepos(xmlpp::Node
*);
141 std::string
parsesource(xmlpp::Node
*);
142 pos
parsepos(xmlpp::Node
*);
143 float parseangle(xmlpp::Node
*);
144 graphics
parsegraphics(xmlpp::Node
*);