43 #ifdef CHECK_MEMORY_LEAKS
45 #endif // CHECK_MEMORY_LEAKS
90 sumoVehicleClassStringInitializer,
SVC_CUSTOM2,
false);
133 sumoVehicleShapeStringInitializer,
SVS_UNKNOWN,
false);
154 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
159 if (ret.length() > 0) {
160 return ret.substr(1);
169 if (permissions ==
SVCAll) {
176 std::vector<std::string>
180 std::vector<std::string> result;
181 for (std::vector<std::string>::const_iterator it = classNames.begin(); it != classNames.end(); it++) {
183 if ((svc & permissions) == svc && svc !=
SVC_IGNORING) {
184 result.push_back(*it);
204 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
205 if (name.find(*it) != std::string::npos) {
215 if (allowedS ==
"all") {
221 const std::string s = sta.
next();
235 if (classes ==
"all") {
249 if (allowedS.size() == 0 && disallowedS.size() == 0) {
251 }
else if (allowedS.size() > 0 && disallowedS.size() > 0) {
252 WRITE_WARNING(
"SVCPermissions must be specified either via 'allow' or 'disallow'. Ignoring 'disallow'");
254 }
else if (allowedS.size() > 0) {
265 for (std::vector<std::string>::const_iterator i = allowedS.begin(); i != allowedS.end(); ++i) {
268 if (realName != *i) {
269 WRITE_WARNING(
"The vehicle class '" + (*i) +
"' is deprecated, use '" + realName +
"' instead.");
304 return (permissions &
SVCAll) == 0;
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
std::string getVehicleClassCompoundName(int id)
std::set< std::string > deprecatedVehicleClassesSeen
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types...
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings(sumoVehicleShapeStringInitializer, SVS_UNKNOWN, false)
vehicle is a not electrified rail
render as a transport vehicle
render as a flexible city bus
vehicle is a small delivery vehicle
std::vector< std::string > getVehicleClassNamesList(SVCPermissions permissions)
Returns the ids of the given classes, divided using a ' '.
render as a delivery vehicle
StringBijection< SUMOVehicleClass >::Entry sumoVehicleClassStringInitializer[]
StringBijection< SUMOVehicleShape >::Entry sumoVehicleShapeStringInitializer[]
render as a sedan passenger vehicle ("Stufenheck")
bool isForbidden(SVCPermissions permissions)
Returns whether an edge with the given permission is a forbidden edge.
bool isRailway(SVCPermissions permissions)
Returns whether an edge with the given permission is a railway edge.
const SVCPermissions SVCAll
vehicle is a (possibly fast moving) electric rail
#define WRITE_WARNING(msg)
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
vehicle is a large transport vehicle
const int SUMOVehicleClass_MAX
const SUMOReal DEFAULT_VEH_PROB(1.)
render as a hatchback passenger vehicle ("Fliessheck")
bool isWaterway(SVCPermissions permissions)
Returns whether an edge with the given permission is a waterway edge.
render as a (city) rail without locomotive
int getVehicleClassCompoundID(const std::string &name)
Returns the OR'ed id of the compound class given by its name.
const SUMOReal DEFAULT_CONTAINER_TRANSHIP_SPEED(5./3.6)
SVCPermissions parseVehicleClasses(const std::string &allowedS)
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes g...
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
render as a passenger vehicle
const SUMOReal DEFAULT_PEDESTRIAN_SPEED(5./3.6)
std::string getVehicleClassNames(SVCPermissions permissions)
Returns the ids of the given classes, divided using a ' '.
vehicle is a passenger car (a "normal" car)
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
render as a arbitrary ship
vehicle is a large transport vehicle
std::string joinToString(const std::vector< T > &v, const T_BETWEEN &between, std::streamsize accuracy=OUTPUT_ACCURACY)
render as a (futuristic) e-vehicle
SUMOVehicleShape getVehicleShapeID(const std::string &name)
Returns the class id of the shape class given by its name.
public emergency vehicles
render as a transport vehicle with one trailer
render as a wagon passenger vehicle ("Combi")
const std::string DEFAULT_PEDTYPE_ID("DEFAULT_PEDTYPE")
const std::string DEFAULT_VTYPE_ID("DEFAULT_VEHTYPE")
render as a semi-trailer transport vehicle ("Sattelschlepper")
vehicles ignoring classes
const SVCPermissions SVC_UNSPECIFIED