Version: 8.3.0
xmlrpcParsers.hxx
Go to the documentation of this file.
1 // Copyright (C) 2006-2016 CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library 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 GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #ifndef _XMLRPCPARSERS_HXX_
21 #define _XMLRPCPARSERS_HXX_
22 
23 #include "parserBase.hxx"
24 #include "factory.hxx"
25 #include <vector>
26 #include <string>
27 
28 namespace YACS
29 {
50 {
52  virtual void onStart(const XML_Char* el, const XML_Char** attr);
53  virtual void onEnd(const char *el,parser* child);
54  virtual void pre ();
55  virtual void int_ (const int& d);
56  virtual void boolean (const bool& d);
57  virtual void double_ (const double& d);
58  virtual void string(const std::string& d);
59  virtual void objref(const std::string& d);
60  virtual void array (const std::string& d);
61  virtual void struct_ (const std::string& d);
62  virtual std::string post();
63  std::string _data;
64  std::vector<std::string> _v;
65 };
66 
79 {
81  virtual void onStart(const XML_Char* el, const XML_Char** attr);
82  virtual void onEnd(const char *el,parser* child);
83  virtual void pre ();
84  virtual void value (const std::string& v);
85  virtual std::string post();
86  std::string _data;
87  std::vector<std::string> _datas;
88 };
89 
103 {
105  virtual void onStart(const XML_Char* el, const XML_Char** attr);
106  virtual void onEnd(const char *el,parser* child);
107  virtual void pre ();
108  virtual void name (const std::string& v);
109  virtual void value (const std::string& v);
110  virtual std::string post();
111  std::string _data;
112  std::vector<std::string> _datas;
113 };
114 
127 {
129  virtual void onStart(const XML_Char* el, const XML_Char** attr);
130  virtual void onEnd(const char *el,parser* child);
131  virtual void pre ();
132  virtual void member (const std::string& d);
133  virtual std::string post();
134  std::string _members;
135  std::vector<std::string> _membersStack;
136 };
137 
150 {
152  virtual void onStart(const XML_Char* el, const XML_Char** attr);
153  virtual void onEnd(const char *el,parser* child);
154  virtual void pre ();
155  virtual void data (const std::string& d);
156  virtual std::string post();
157  std::vector<std::string> _arrays;
158 };
159 
161 {
163 
164  virtual void onStart(const XML_Char* el, const XML_Char** attr);
165  virtual void onEnd(const char *el,parser* child);
166  virtual void pre ();
167  virtual void tonode (const std::string& name);
168  virtual void toport (const std::string& name);
169  virtual void value (const std::string& name);
170  virtual myparam& post();
172 };
173 
174 }
175 
176 #endif