Ignore:
Timestamp:
Apr 29, 2008, 6:30:38 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
dac5c5
Parents:
661288
Message:

config::Load..() now get filename instead of pointer to file, bugfix for switch structure in command line parsin
g.

Load..() functions RetrieveConfigPath() - the path that is given for the config file on the command line - and p
ut it into config::configpath. This is necessary to allow later for a sensible storage path under fragmentation, as the old with defaultpath from the file was stupid, if the given path was wrong (whereas the config path always exists).
Switch structure in parsing the command line options needed to make better use of the already present flag in or
der to know when to just save and stop and when to continue to the interactive menu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified molecuilder/src/molecules.hpp

    r661288 rf5306f  
    612612    int ProcPEGamma;
    613613    int ProcPEPsi;
     614    char *configpath;
    614615   
    615616    private:
     
    674675  ~config();
    675676
    676   int TestSyntax(ifstream *file, periodentafel *periode, molecule *mol);
    677   void Load(ifstream *file, periodentafel *periode, molecule *mol);
    678   void LoadOld(ifstream *file, periodentafel *periode, molecule *mol);
     677  int TestSyntax(char *filename, periodentafel *periode, molecule *mol);
     678  void Load(char *filename, periodentafel *periode, molecule *mol);
     679  void LoadOld(char *filename, periodentafel *periode, molecule *mol);
     680  void RetrieveConfigPath(char *filename);
    679681  bool Save(ofstream *file, periodentafel *periode, molecule *mol) const;
    680682  void Edit(molecule *mol);
Note: See TracChangeset for help on using the changeset viewer.