43 #ifdef CHECK_MEMORY_LEAKS
45 #endif // CHECK_MEMORY_LEAKS
89 sumoVehicleClassStringInitializer,
SVC_CUSTOM2,
false);
131 sumoVehicleShapeStringInitializer,
SVS_UNKNOWN,
false);
151 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
156 if (ret.length() > 0) {
157 return ret.substr(1);
166 if (permissions ==
SVCAll) {
173 std::vector<std::string>
177 std::vector<std::string> result;
178 for (std::vector<std::string>::const_iterator it = classNames.begin(); it != classNames.end(); it++) {
180 if ((svc & permissions) == svc && svc !=
SVC_IGNORING) {
181 result.push_back(*it);
193 throw ProcessError(
"Unknown vehicle class '" + name +
"'.");
201 for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); it++) {
202 if (name.find(*it) != std::string::npos) {
212 if (allowedS ==
"all") {
218 const std::string s = sta.
next();
232 if (classes ==
"all") {
246 if (allowedS.size() == 0 && disallowedS.size() == 0) {
248 }
else if (allowedS.size() > 0 && disallowedS.size() > 0) {
249 WRITE_WARNING(
"SVCPermissions must be specified either via 'allow' or 'disallow'. Ignoring 'disallow'");
251 }
else if (allowedS.size() > 0) {
262 for (std::vector<std::string>::const_iterator i = allowedS.begin(); i != allowedS.end(); ++i) {
265 if (realName != *i) {
266 WRITE_WARNING(
"The vehicle class '" + (*i) +
"' is deprecated, use '" + realName +
"' instead.");
279 throw ProcessError(
"Unknown vehicle shape '" + name +
"'.");
296 return (permissions &
SVCAll) == 0;