41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
64 into.push_back(device);
73 :
MSDevice(holder, id), myReportRoute(false) {
OutputDevice & writeAttr(const SumoXMLAttr attr, const T &val)
writes a named attribute
void generateOutput() const
Called on writing tripinfo output.
virtual const MSRoute & getRoute() const =0
Returns the current route.
~MSDevice_BTsender()
Destructor.
SUMOVehicle & myHolder
The vehicle that stores the device.
const MSEdgeVector & getEdges() const
static OptionsCont & getOptions()
Retrieves the options.
Representation of a vehicle.
MSDevice_BTsender(SUMOVehicle &holder, const std::string &id)
Constructor.
static void insertDefaultAssignmentOptions(const std::string &deviceName, const std::string &optionsTopic, OptionsCont &oc)
Adds common command options that allow to assign devices to vehicles.
void addOptionSubTopic(const std::string &topic)
Adds an option subtopic.
static void insertOptions(OptionsCont &oc)
Inserts MSDevice_BTsender-options.
Abstract in-vehicle device.
static bool equippedByDefaultAssignmentOptions(const OptionsCont &oc, const std::string &deviceName, SUMOVehicle &v)
Determines whether a vehicle should get a certain device.
static OutputDevice & getDeviceByOption(const std::string &name)
Returns the device described by the option.
A storage for options typed value containers)
bool myReportRoute
Whether the vehicle shall report it's route.
Static storage of an output device and its base (abstract) implementation.
bool closeTag()
Closes the most recently opened tag.
virtual const std::string & getID() const =0
Get the vehicle's ID.
static void buildVehicleDevices(SUMOVehicle &v, std::vector< MSDevice * > &into)
Build devices for the given vehicle, if needed.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.