Ignore:
Timestamp:
Jan 5, 2010, 9:23:25 AM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
70c4aa6
Parents:
16f86d
Message:

Moved saveConfig method from oldmenu to a method inside config class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r16f86d r538744  
    7878 */
    7979static int ParseCommandLineOptions(int argc, char **argv, MoleculeListClass *&molecules, periodentafel *&periode,\
    80                                    config& configuration, char *&ConfigFileName, oldmenu *main_menu)
     80                                   config& configuration, char *&ConfigFileName)
    8181{
    8282  Vector x,y,z,n;  // coordinates for absolute point in cell volume
     
    879879    } while (argptr < argc);
    880880    if (SaveFlag)
    881       main_menu->SaveConfig(ConfigFileName, &configuration, periode, molecules);
     881      configuration.SaveAll(ConfigFileName, periode, molecules);
    882882  } else {  // no arguments, hence scan the elements db
    883883    if (periode->LoadPeriodentafel(configuration.databasepath))
     
    907907    main_menu = new oldmenu;
    908908    setVerbosity(0);
    909     /* main menu is needed to call actions inside the menu */
    910909    /* structure of ParseCommandLineOptions will be refactored later */
    911     j = ParseCommandLineOptions(argc, argv, molecules, periode, *configuration, ConfigFileName,main_menu);
     910    j = ParseCommandLineOptions(argc, argv, molecules, periode, *configuration, ConfigFileName);
    912911    switch (j){
    913912        case 255:
Note: See TracChangeset for help on using the changeset viewer.