SUMO - Simulation of Urban MObility
TraCIServerAPI_Person.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // APIs for getting/setting person values via TraCI
18 /****************************************************************************/
19 #ifndef TraCIServerAPI_Person_h
20 #define TraCIServerAPI_Person_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #ifndef NO_TRACI
33 
34 #include <foreign/tcpip/storage.h>
35 
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 class TraCIServer;
41 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
58  static bool processGet(TraCIServer& server, tcpip::Storage& inputStorage,
59  tcpip::Storage& outputStorage);
60 
61 
68  static bool processSet(TraCIServer& server, tcpip::Storage& inputStorage,
69  tcpip::Storage& outputStorage);
70 
71 
77  static bool getPosition(const std::string& id, Position& p);
78 
79 private:
82 
85 
86 
87 };
88 
89 
90 #endif
91 
92 #endif
93 
94 /****************************************************************************/
APIs for getting/setting person values via TraCI.
TraCIServerAPI_Person & operator=(const TraCIServerAPI_Person &s)
invalidated assignment operator
static bool getPosition(const std::string &id, Position &p)
Returns the named persons&#39;s position.
static bool processSet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a set value command (Command 0xce: Change Person State)
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
TraCI server used to control sumo by a remote TraCI client.
Definition: TraCIServer.h:69
static bool processGet(TraCIServer &server, tcpip::Storage &inputStorage, tcpip::Storage &outputStorage)
Processes a get value command (Command 0xae: Get Person Variable)
TraCIServerAPI_Person(const TraCIServerAPI_Person &s)
invalidated copy constructor