Ignore:
Timestamp:
02/25/13 11:47:25 (11 years ago)
Author:
lucsch
Message:
  • TmDmCreator is now working (supports language selection)
  • Adding swisstopo data model definition
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tmdmcreator/src/main.cpp

    r18 r21  
    3535        wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, 
    3636    { wxCMD_LINE_SWITCH, "v", "verbose", "Be more verbose" }, 
    37     { wxCMD_LINE_SWITCH, "t", "toolmap", "toolmap output" }, 
    38     { wxCMD_LINE_SWITCH, "o", "overwrite", "overwrite output" },     
     37    { wxCMD_LINE_SWITCH, "t", "toolmap", "toolmap output (default is SQL)" }, 
     38    { wxCMD_LINE_SWITCH, "o", "overwrite", "overwrite output" }, 
     39    { wxCMD_LINE_OPTION, "l", "language", "language column (default is 0)", wxCMD_LINE_VAL_NUMBER, wxCMD_LINE_PARAM_OPTIONAL}, 
    3940    { wxCMD_LINE_PARAM, NULL, NULL, "[base structure sql file]"}, 
    4041    { wxCMD_LINE_PARAM, NULL, NULL, "[user structure sql file]"}, 
     
    8384    bool bVerbose = parser.Found("verbose"); 
    8485    bool bToolMap = parser.Found("toolmap"); 
     86    long myLanguage = 0; 
     87    if(parser.Found("language", &myLanguage) == true) { 
     88        wxPrintf(_("Using language column: %ld\n"), myLanguage); 
     89    } 
    8590    if (parser.Found("overwrite") && wxFileExists(parser.GetParam(3))) { 
    8691        wxRemoveFile(parser.GetParam(3)); 
     
    108113    } 
    109114     
    110     if (myCreator.ProcessFiles(myErrors) == false) { 
     115    if (myCreator.ProcessFiles(myErrors, myLanguage) == false) { 
    111116        if (bVerbose == true) { 
    112117            PrintArray(myErrors); 
Note: See TracChangeset for help on using the changeset viewer.