All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
mbsim_server.h
1 /* Copyright (C) 2013 Markus Schneider
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 
17  *
18  * Contact:
19  * markus.ms.schneider@live.de
20  *
21  */
22 
23 #ifndef _MBSIMSERVER_H_
24 #define _MBSIMSERVER_H_
25 
26 #include <mbxmlutilshelper/dom.h>
27 
28 namespace MBSimInterface {
29 
30  const MBXMLUtils::NamespaceURI MBSIMINTERFACE("http://www.mbsim-env.de/MBSimInterface");
31 
32  class InterfaceIntegrator;
33 
34  class MBSimServer {
35  public:
36  MBSimServer(InterfaceIntegrator* ii_) {ii=ii_; }
37 
38  virtual void initializeUsingXML(xercesc::DOMElement *element) {};
39 
40  virtual void start() {};
41  protected:
43  };
44 
45  class MBSimTcpServer : public MBSimServer {
46  public:
48  void setPort(unsigned short port_) {port=port_; }
49  void setOutputPrecision(unsigned int p) {outputPrecision=p; }
50  virtual void initializeUsingXML(xercesc::DOMElement *element);
51  void start();
52  private:
53  unsigned int port;
54  unsigned int outputPrecision;
55  };
56 
57  class MBSimUdpServer : public MBSimServer {
58  public:
60  void setPort(unsigned short port_) {port=port_; }
61  virtual void initializeUsingXML(xercesc::DOMElement *element);
62  void start();
63  private:
64  unsigned int port;
65  };
66 
67 }
68 
69 #endif
Definition: mbsim_server.h:45
Definition: mbsim_server.h:34
Definition: mbsim_server.h:57
Dummy-Integrator InterfaceIntegrator This integrator is an interface for other integration tool...
Definition: interface_integrator.h:39

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML