46 if (permissions == 0) {
53 if ((mask & permissions) == mask) {
58 if (num_allowed <= (numVClasses - num_allowed) && num_allowed > 0) {
const SVCPermissions SVCAll
all VClasses are allowed
const SVCPermissions SVC_UNSPECIFIED
permissions not specified
const std::string & getVehicleClassNames(SVCPermissions permissions, bool expand)
Returns the ids of the given classes, divided using a ' '.
int getNumVehicleClasses()
returns the number of (non-grouping) vehicle classes
const SUMOVehicleClass SUMOVehicleClass_MAX
long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
@ SUMO_TAG_PARAM
parameter associated to a certain key
Static storage of an output device and its base (abstract) implementation.
OutputDevice & openTag(const std::string &xmlElement)
Opens an XML tag.
OutputDevice & writeAttr(const ATTR_TYPE &attr, const T &val, const bool isNull=false, const bool escape=false)
writes a named attribute
OutputDevice & writeOptionalAttr(const SumoXMLAttr attr, const T &val, const bool isNull=false, const bool escape=false)
writes a named attribute unless null
bool closeTag(const std::string &comment="")
Closes the most recently opened tag and optionally adds a comment.
An upper class for objects with additional parameters.
const Parameterised::Map & getParametersMap() const
Returns the inner key/value map.
static OutputDevice & writeParams(OutputDevice &device, const Parameterised ¶ms)
write the parameters of the given object as param tags
static OutputDevice & writePreferences(OutputDevice &device, SVCPermissions preferred)
writes the prefer attribute if needed
static OutputDevice & writePermissions(OutputDevice &device, SVCPermissions permissions)
writes allowed disallowed attributes if needed