Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libsumo::Helper::SubscriptionWrapper Class Referencefinal

#include <Helper.h>

Inheritance diagram for libsumo::Helper::SubscriptionWrapper:
[legend]
Collaboration diagram for libsumo::Helper::SubscriptionWrapper:
[legend]

Public Types

typedef bool(* SubscriptionHandler) (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
 Definition of a method to be called for serving an associated commandID.
 

Public Member Functions

void clear ()
 
void empty (const std::string &objID)
 
void setContext (const std::string *const refID)
 
 SubscriptionWrapper (VariableWrapper::SubscriptionHandler handler, SubscriptionResults &into, ContextSubscriptionResults &context)
 
bool wrapColor (const std::string &objID, const int variable, const TraCIColor &value)
 
bool wrapDouble (const std::string &objID, const int variable, const double value)
 
bool wrapDoubleList (const std::string &objID, const int variable, const std::vector< double > &value)
 
bool wrapInt (const std::string &objID, const int variable, const int value)
 
bool wrapPosition (const std::string &objID, const int variable, const TraCIPosition &value)
 
bool wrapPositionVector (const std::string &objID, const int variable, const TraCIPositionVector &value)
 
bool wrapString (const std::string &objID, const int variable, const std::string &value)
 
bool wrapStringDoublePair (const std::string &objID, const int variable, const std::pair< std::string, double > &value)
 
bool wrapStringList (const std::string &objID, const int variable, const std::vector< std::string > &value)
 
bool wrapStringPair (const std::string &objID, const int variable, const std::pair< std::string, std::string > &value)
 

Data Fields

SubscriptionHandler handle
 

Private Member Functions

SubscriptionWrapperoperator= (const SubscriptionWrapper &s)=delete
 Invalidated assignment operator.
 

Private Attributes

SubscriptionResultsmyActiveResults
 
ContextSubscriptionResultsmyContextResults
 
SubscriptionResultsmyResults
 

Detailed Description

Definition at line 209 of file Helper.h.

Member Typedef Documentation

◆ SubscriptionHandler

typedef bool(* libsumo::VariableWrapper::SubscriptionHandler) (const std::string &objID, const int variable, VariableWrapper *wrapper, tcpip::Storage *paramData)
inherited

Definition of a method to be called for serving an associated commandID.

Definition at line 153 of file Subscription.h.

Constructor & Destructor Documentation

◆ SubscriptionWrapper()

libsumo::Helper::SubscriptionWrapper::SubscriptionWrapper ( VariableWrapper::SubscriptionHandler  handler,
SubscriptionResults into,
ContextSubscriptionResults context 
)

Definition at line 1846 of file Helper.cpp.

Member Function Documentation

◆ clear()

void libsumo::Helper::SubscriptionWrapper::clear ( )
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 1859 of file Helper.cpp.

References libsumo::VariableWrapper::clear().

◆ empty()

void libsumo::Helper::SubscriptionWrapper::empty ( const std::string &  objID)
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 1944 of file Helper.cpp.

◆ operator=()

SubscriptionWrapper & libsumo::Helper::SubscriptionWrapper::operator= ( const SubscriptionWrapper s)
privatedelete

Invalidated assignment operator.

◆ setContext()

void libsumo::Helper::SubscriptionWrapper::setContext ( const std::string *const  refID)
virtual

Reimplemented from libsumo::VariableWrapper.

Definition at line 1853 of file Helper.cpp.

◆ wrapColor()

bool libsumo::Helper::SubscriptionWrapper::wrapColor ( const std::string &  objID,
const int  variable,
const TraCIColor value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1920 of file Helper.cpp.

◆ wrapDouble()

bool libsumo::Helper::SubscriptionWrapper::wrapDouble ( const std::string &  objID,
const int  variable,
const double  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1867 of file Helper.cpp.

◆ wrapDoubleList()

bool libsumo::Helper::SubscriptionWrapper::wrapDoubleList ( const std::string &  objID,
const int  variable,
const std::vector< double > &  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1897 of file Helper.cpp.

◆ wrapInt()

bool libsumo::Helper::SubscriptionWrapper::wrapInt ( const std::string &  objID,
const int  variable,
const int  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1874 of file Helper.cpp.

◆ wrapPosition()

bool libsumo::Helper::SubscriptionWrapper::wrapPosition ( const std::string &  objID,
const int  variable,
const TraCIPosition value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1906 of file Helper.cpp.

◆ wrapPositionVector()

bool libsumo::Helper::SubscriptionWrapper::wrapPositionVector ( const std::string &  objID,
const int  variable,
const TraCIPositionVector value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1913 of file Helper.cpp.

◆ wrapString()

bool libsumo::Helper::SubscriptionWrapper::wrapString ( const std::string &  objID,
const int  variable,
const std::string &  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1881 of file Helper.cpp.

◆ wrapStringDoublePair()

bool libsumo::Helper::SubscriptionWrapper::wrapStringDoublePair ( const std::string &  objID,
const int  variable,
const std::pair< std::string, double > &  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1927 of file Helper.cpp.

◆ wrapStringList()

bool libsumo::Helper::SubscriptionWrapper::wrapStringList ( const std::string &  objID,
const int  variable,
const std::vector< std::string > &  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1888 of file Helper.cpp.

◆ wrapStringPair()

bool libsumo::Helper::SubscriptionWrapper::wrapStringPair ( const std::string &  objID,
const int  variable,
const std::pair< std::string, std::string > &  value 
)
virtual

Implements libsumo::VariableWrapper.

Definition at line 1934 of file Helper.cpp.

Field Documentation

◆ handle

SubscriptionHandler libsumo::VariableWrapper::handle
inherited

Definition at line 156 of file Subscription.h.

◆ myActiveResults

SubscriptionResults* libsumo::Helper::SubscriptionWrapper::myActiveResults
private

Definition at line 228 of file Helper.h.

◆ myContextResults

ContextSubscriptionResults& libsumo::Helper::SubscriptionWrapper::myContextResults
private

Definition at line 227 of file Helper.h.

◆ myResults

SubscriptionResults& libsumo::Helper::SubscriptionWrapper::myResults
private

Definition at line 226 of file Helper.h.


The documentation for this class was generated from the following files: