1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
10 /// @file    SUMOSAXHandler.h
11 /// @author  Daniel Krajzewicz
12 /// @author  Jakob Erdmann
13 /// @author  Michael Behrisch
14 /// @date    Sept 2002
15 /// @version $Id$
16 ///
17 // SAX-handler base for SUMO-files
18 /****************************************************************************/
19 #ifndef SUMOSAXHandler_h
20 #define SUMOSAXHandler_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <config.h>
27 
28 #include <string>
29 #include <utils/xml/GenericSAXHandler.h>
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
35 /**
36  * @class SUMOSAXHandler
37  * @brief SAX-handler base for SUMO-files
38  *
39  * This class is a GenericSAXHandler which knows all tags SUMO uses, so all
40  *  SUMO-XML - loading classes should be derived from it.
41  */
42 class SUMOSAXHandler : public GenericSAXHandler {
43 public:
44     /**
45      * @brief Constructor
46      *
47      * @param[in] file The name of the processed file
48      */
49     SUMOSAXHandler(const std::string& file = "", const std::string& expectedRoot = "");
50 
51 
52     /// Destructor
53     virtual ~SUMOSAXHandler();
54 
55 
56 private:
57     /// @brief invalidated copy constructor
58     SUMOSAXHandler(const SUMOSAXHandler& s);
59 
60     /// @brief invalidated assignment operator
61     const SUMOSAXHandler& operator=(const SUMOSAXHandler& s);
62 
63 };
64 
65 
66 #endif
67 
68 /****************************************************************************/
69 
70