Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
Domain.h File Reference
#include <config.h>
#include <vector>
#include <limits>
#include <map>
#include <string>
#include <stdexcept>
#include <sstream>
#include <memory>
#include <foreign/tcpip/storage.h>
#include <libtraci/Connection.h>
#include <libsumo/StorageHelper.h>
Include dependency graph for Domain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  libtraci::Domain< GET, SET >
 

Namespaces

namespace  libtraci
 

Macros

#define LIBTRACI_PARAMETER_IMPLEMENTATION(CLASS, DOMAIN)
 
#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION(CLASS, DOMAIN)
 

Detailed Description

Author
Daniel Krajzewicz
Mario Krumnow
Michael Behrisch
Robert Hilbrich
Date
30.05.2012

Definition in file Domain.h.

Macro Definition Documentation

◆ LIBTRACI_PARAMETER_IMPLEMENTATION

#define LIBTRACI_PARAMETER_IMPLEMENTATION (   CLASS,
  DOMAIN 
)
Value:
std::string \
CLASS::getParameter(const std::string& objectID, const std::string& param) { \
tcpip::Storage content; \
content.writeString(param); \
return Dom::getString(libsumo::VAR_PARAMETER, objectID, &content); \
} \
\
void \
CLASS::setParameter(const std::string& objectID, const std::string& key, const std::string& value) { \
tcpip::Storage content; \
content.writeInt(2); \
content.writeString(key); \
content.writeString(value); \
Connection::getActive().doCommand(libsumo::CMD_SET_##DOMAIN##_VARIABLE, libsumo::VAR_PARAMETER, objectID, &content); \
} \
\
const std::pair<std::string, std::string> \
CLASS::getParameterWithKey(const std::string& objectID, const std::string& key) { \
return std::make_pair(key, getParameter(objectID, key)); \
}
virtual void writeString(const std::string &s)
Definition storage.cpp:197
virtual void writeInt(int)
Definition storage.cpp:321
virtual void writeUnsignedByte(int)
Definition storage.cpp:165
virtual void writeByte(int)
Definition storage.cpp:140
TRACI_CONST int TYPE_COMPOUND
TRACI_CONST int VAR_PARAMETER
TRACI_CONST int TYPE_STRING

Definition at line 77 of file Domain.h.

◆ LIBTRACI_SUBSCRIPTION_IMPLEMENTATION

#define LIBTRACI_SUBSCRIPTION_IMPLEMENTATION (   CLASS,
  DOMAIN 
)

Definition at line 38 of file Domain.h.