36 #ifdef CHECK_MEMORY_LEAKS 38 #endif // CHECK_MEMORY_LEAKS 71 return value.find_first_of(
" \t\n\r@$%^&/|\\{}*'\";:<>") == std::string::npos;
90 const std::vector<SumoXMLAttr>&
156 const std::vector<SumoXMLTag>&
200 const std::vector<std::string>&
204 std::vector<std::string> choices;
206 for (std::vector<std::string>::const_iterator it = choices.begin(); it != choices.end(); ++it) {
216 for (std::vector<std::string>::const_iterator it = choices.begin(); it != choices.end(); ++it) {
221 for (std::vector<std::string>::const_iterator it = choices.begin(); it != choices.end(); ++it) {
The information about how to spread the lanes from the given position.
static std::set< SumoXMLAttr > _numericalAttrs
SumoXMLTag
Numbers representing SUMO-XML - element names.
static StringBijection< SumoXMLNodeType > NodeTypes
static SUMOReal _str2SUMOReal(const std::string &sData)
Whether vehicles must keep the junction clear.
static bool isNumerical(SumoXMLAttr attr)
whether an attribute is numerical
static StringBijection< LaneSpreadFunction > LaneSpreadFunctions
static const std::string LOADED
feature is still unchanged after being loaded (implies approval)
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
#define UNUSED_PARAMETER(x)
#define WRITE_WARNING(msg)
std::vector< std::string > getStrings() const
static const std::vector< std::string > & discreteChoices(SumoXMLTag tag, SumoXMLAttr attr)
return a list of discrete choices for this attribute or an empty vector
static bool isValidID(const std::string &value)
true if value is a valid sumo ID
static const std::string MODIFIED
feature has been manually modified (implies approval)
The turning radius at an intersection in m.
static const std::vector< SumoXMLTag > & allowedTags()
get all editable attributes for tag.
static int _str2int(const std::string &sData)
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings(sumoVehicleClassStringInitializer, SVC_CUSTOM2, false)
std::string toString(const T &t, std::streamsize accuracy=OUTPUT_ACCURACY)
static std::set< SumoXMLAttr > _uniqueAttrs
GNEAttributeCarrier(SumoXMLTag tag)
Constructor.
const std::vector< SumoXMLAttr > & getAttrs() const
static std::vector< SumoXMLTag > _allowedTags
static const std::string APPROVED
feature has been approved but not changed (i.e. after being reguessed)
static const std::vector< SumoXMLAttr > & allowedAttributes(SumoXMLTag tag)
get all editable attributes for tag.
static bool discreteCombinableChoices(SumoXMLTag tag, SumoXMLAttr attr)
return whether the given attribute allows for a combination of discrete values
static const std::string GUESSED
feature has been reguessed (may still be unchanged be we can't tell (yet)
static bool isUnique(SumoXMLAttr attr)
whether an attribute is unique (may not be edited for a multi-selection)
static std::map< SumoXMLTag, std::vector< SumoXMLAttr > > _allowedAttributes
virtual bool isValid(SumoXMLAttr key, const std::string &value)
static T parse(const std::string &string)
parses a number of type T from string
static std::map< SumoXMLTag, std::map< SumoXMLAttr, std::vector< std::string > > > _discreteChoices