Eclipse SUMO - Simulation of Urban MObility
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

 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.writeByte(libsumo::TYPE_STRING); \
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.writeUnsignedByte(libsumo::TYPE_COMPOUND); \
content.writeInt(2); \
content.writeUnsignedByte(libsumo::TYPE_STRING); \
content.writeString(key); \
content.writeUnsignedByte(libsumo::TYPE_STRING); \
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)); \
}
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.