Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
libsumo::VariableWrapper Class Referenceabstract

#include <Subscription.h>

Inheritance diagram for libsumo::VariableWrapper:
[legend]
Collaboration diagram for libsumo::VariableWrapper:
[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

virtual void clear ()
 
virtual void empty (const std::string &)
 
virtual void setContext (const std::string *const)
 
 VariableWrapper (SubscriptionHandler handler=nullptr)
 
virtual bool wrapColor (const std::string &objID, const int variable, const TraCIColor &value)=0
 
virtual bool wrapDouble (const std::string &objID, const int variable, const double value)=0
 
virtual bool wrapDoubleList (const std::string &objID, const int variable, const std::vector< double > &value)=0
 
virtual bool wrapInt (const std::string &objID, const int variable, const int value)=0
 
virtual bool wrapPosition (const std::string &objID, const int variable, const TraCIPosition &value)=0
 
virtual bool wrapPositionVector (const std::string &objID, const int variable, const TraCIPositionVector &value)=0
 
virtual bool wrapString (const std::string &objID, const int variable, const std::string &value)=0
 
virtual bool wrapStringDoublePair (const std::string &objID, const int variable, const std::pair< std::string, double > &value)=0
 
virtual bool wrapStringList (const std::string &objID, const int variable, const std::vector< std::string > &value)=0
 
virtual bool wrapStringPair (const std::string &objID, const int variable, const std::pair< std::string, std::string > &value)=0
 
virtual ~VariableWrapper ()
 

Data Fields

SubscriptionHandler handle
 

Detailed Description

Definition at line 150 of file Subscription.h.

Member Typedef Documentation

◆ SubscriptionHandler

typedef bool(* libsumo::VariableWrapper::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.

Definition at line 153 of file Subscription.h.

Constructor & Destructor Documentation

◆ VariableWrapper()

libsumo::VariableWrapper::VariableWrapper ( SubscriptionHandler  handler = nullptr)
inline

Definition at line 154 of file Subscription.h.

◆ ~VariableWrapper()

virtual libsumo::VariableWrapper::~VariableWrapper ( )
inlinevirtual

Definition at line 155 of file Subscription.h.

Member Function Documentation

◆ clear()

virtual void libsumo::VariableWrapper::clear ( )
inlinevirtual

Reimplemented in libsumo::Helper::SubscriptionWrapper.

Definition at line 158 of file Subscription.h.

Referenced by libsumo::Helper::SubscriptionWrapper::clear().

Here is the caller graph for this function:

◆ empty()

virtual void libsumo::VariableWrapper::empty ( const std::string &  )
inlinevirtual

Reimplemented in libsumo::Helper::SubscriptionWrapper.

Definition at line 169 of file Subscription.h.

Referenced by libsumo::Helper::handleSingleSubscription().

Here is the caller graph for this function:

◆ setContext()

virtual void libsumo::VariableWrapper::setContext ( const std::string * const  )
inlinevirtual

Reimplemented in libsumo::Helper::SubscriptionWrapper.

Definition at line 157 of file Subscription.h.

Referenced by libsumo::Helper::handleSingleSubscription().

Here is the caller graph for this function:

◆ wrapColor()

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

◆ wrapDouble()

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

◆ wrapDoubleList()

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

◆ wrapInt()

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

◆ wrapPosition()

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

◆ wrapPositionVector()

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

◆ wrapString()

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

◆ wrapStringDoublePair()

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

◆ wrapStringList()

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

◆ wrapStringPair()

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

Field Documentation

◆ handle

SubscriptionHandler libsumo::VariableWrapper::handle

Definition at line 156 of file Subscription.h.


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