Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    rda3024 r980dd6  
    4747 */
    4848
    49 #include "Helpers/MemDebug.hpp"
    5049
    5150#include <boost/bind.hpp>
     
    7473#include "periodentafel.hpp"
    7574#include "UIElements/UIFactory.hpp"
    76 #include "UIElements/TextUI/TextUIFactory.hpp"
    77 #include "UIElements/CommandLineUI/CommandLineUIFactory.hpp"
    7875#include "UIElements/MainWindow.hpp"
    7976#include "UIElements/Dialog.hpp"
     
    8784#include "version.h"
    8885#include "World.hpp"
    89 
     86#include "Helpers/MemDebug.hpp"
    9087
    9188/********************************************* Subsubmenu routine ************************************/
     
    13581355};
    13591356
     1357#endif
    13601358
    13611359/** Tries given filename or standard on saving the config file.
     
    14831481};
    14841482
    1485 #endif
    1486 
    14871483/** Parses the command line options.
    14881484 * Note that this function is from now on transitional. All commands that are not passed
     
    15021498{
    15031499  Vector x,y,z,n;  // coordinates for absolute point in cell volume
     1500  double *factor; // unit factor if desired
    15041501  ifstream test;
    15051502  ofstream output;
    15061503  string line;
     1504  atom *first;
    15071505  bool SaveFlag = false;
    15081506  int ExitFlag = 0;
     
    15101508  double volume = 0.;
    15111509  enum ConfigStatus configPresent = absent;
     1510  clock_t start,end;
     1511  double MaxDistance = -1;
    15121512  int argptr;
    15131513  molecule *mol = NULL;
    15141514  string BondGraphFileName("\n");
     1515  bool DatabasePathGiven = false;
    15151516
    15161517  if (argc > 1) { // config file specified as option
     
    21892190  ActionRegistry::purgeInstance();
    21902191  ActionHistory::purgeInstance();
    2191 #ifdef LOG_OBSERVER
    2192   cout << observerLog().getLog();
    2193 #endif
    21942192  Memory::getState();
    21952193}
     
    21972195int main(int argc, char **argv)
    21982196{
     2197    config *configuration = World::getInstance().getConfig();
    21992198    // while we are non interactive, we want to abort from asserts
    22002199    //ASSERT_DO(Assert::Abort);
     2200    molecule *mol = NULL;
    22012201    Vector x, y, z, n;
    22022202    ifstream test;
     
    22552255      if (!CommandLineParser::getInstance().isEmpty()) {
    22562256        DoLog(0) && (Log() << Verbose(0) << "Setting UI to CommandLine." << endl);
    2257         UIFactory::registerFactory(new CommandLineUIFactory::description());
    2258         UIFactory::makeUserInterface("CommandLine");
     2257        UIFactory::makeUserInterface(UIFactory::CommandLine);
    22592258      } else {
    22602259        DoLog(0) && (Log() << Verbose(0) << "Setting UI to Text." << endl);
    2261         UIFactory::registerFactory(new TextUIFactory::description());
    2262         UIFactory::makeUserInterface("Text");
     2260        UIFactory::makeUserInterface(UIFactory::Text);
    22632261      }
    22642262    }
Note: See TracChangeset for help on using the changeset viewer.