Skip to content

Commit

Permalink
more keywords. refs #1767
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 9, 2019
1 parent 4768063 commit 555f92b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/netimport/NIImporter_VISUM.cpp
Expand Up @@ -39,9 +39,12 @@


StringBijection<NIImporter_VISUM::VISUM_KEY>::Entry NIImporter_VISUM::KEYS_DE[] = {
{ "VSYS", VISUM_SYS },
{ "STRECKENTYP", VISUM_LINKTYPE },
{ "STRECKE", VISUM_LINK },
{ "KNOTEN", VISUM_NODE },
{ "BEZIRK", VISUM_DISTRICT },
{ "PUNKT", VISUM_POINT },
{ "STRECKE", VISUM_LINK },
{ "V0IV", VISUM_V0 },
{ "VSYSSET", VISUM_TYPES },
{ "RANG", VISUM_RANK },
Expand Down Expand Up @@ -97,11 +100,11 @@ NIImporter_VISUM::NIImporter_VISUM(NBNetBuilder& nb,

// the order of process is important!
// set1
addParser("VSYS", &NIImporter_VISUM::parse_VSysTypes);
addParser(KEYS.getString(VISUM_SYS), &NIImporter_VISUM::parse_VSysTypes);
addParser(KEYS.getString(VISUM_LINKTYPE), &NIImporter_VISUM::parse_Types);
addParser(KEYS.getString(VISUM_NODE), &NIImporter_VISUM::parse_Nodes);
addParser("BEZIRK", &NIImporter_VISUM::parse_Districts);
addParser("PUNKT", &NIImporter_VISUM::parse_Point);
addParser(KEYS.getString(VISUM_DISTRICT), &NIImporter_VISUM::parse_Districts);
addParser(KEYS.getString(VISUM_POINT), &NIImporter_VISUM::parse_Point);

// set2
// two types of "strecke"
Expand Down
5 changes: 4 additions & 1 deletion src/netimport/NIImporter_VISUM.h
Expand Up @@ -527,9 +527,12 @@ class NIImporter_VISUM {
* @brief Numbers representing VISUM keywords
*/
enum VISUM_KEY {
VISUM_SYS,
VISUM_LINKTYPE,
VISUM_LINK,
VISUM_NODE,
VISUM_DISTRICT,
VISUM_POINT,
VISUM_LINK,
VISUM_V0,
VISUM_TYPES,
VISUM_RANK,
Expand Down

0 comments on commit 555f92b

Please sign in to comment.