Eclipse SUMO - Simulation of Urban MObility
RODFDetectorHandler.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-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 /****************************************************************************/
18 // missing_desc
19 /****************************************************************************/
20 #ifndef RODFDetectorHandler_h
21 #define RODFDetectorHandler_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <config.h>
28 
29 #include <string>
32 #include "RODFDetector.h"
33 
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
43 public:
45  RODFDetectorHandler(RODFNet* optNet, bool ignoreErrors, RODFDetectorCon& con,
46  const std::string& file);
47 
49  virtual ~RODFDetectorHandler();
50 
51 protected:
53 
54 
62  void myStartElement(int element,
63  const SUMOSAXAttributes& attrs);
65 
66 private:
69 
72 
75 
76 
77 private:
80 
83 
84 };
85 
86 
87 #endif
88 
89 /****************************************************************************/
90 
RODFDetectorHandler
SAX2-Handler for loading DFROUTER-detector definitions.
Definition: RODFDetectorHandler.h:42
RODFDetectorHandler::RODFDetectorHandler
RODFDetectorHandler(RODFNet *optNet, bool ignoreErrors, RODFDetectorCon &con, const std::string &file)
Constructor.
Definition: RODFDetectorHandler.cpp:43
RODFDetectorHandler::myContainer
RODFDetectorCon & myContainer
the container to put the detectors into
Definition: RODFDetectorHandler.h:74
SUMOSAXHandler
SAX-handler base for SUMO-files.
Definition: SUMOSAXHandler.h:42
OptionsCont.h
SUMOSAXHandler.h
RODFDetectorHandler::myIgnoreErrors
bool myIgnoreErrors
whether to ignore errors on parsing
Definition: RODFDetectorHandler.h:71
RODFDetector.h
RODFDetectorCon
A container for RODFDetectors.
Definition: RODFDetector.h:221
RODFDetectorHandler::~RODFDetectorHandler
virtual ~RODFDetectorHandler()
Destructor.
Definition: RODFDetectorHandler.cpp:49
RODFNet
A DFROUTER-network.
Definition: RODFNet.h:45
config.h
RODFDetectorHandler::myNet
RODFNet * myNet
the net
Definition: RODFDetectorHandler.h:68
SUMOSAXAttributes
Encapsulated SAX-Attributes.
Definition: SUMOSAXAttributes.h:57
RODFDetectorHandler::operator=
RODFDetectorHandler & operator=(const RODFDetectorHandler &src)
invalidated assignment operator
RODFDetectorHandler::myStartElement
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
Definition: RODFDetectorHandler.cpp:53