Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/builder.cpp

    r952f38 r490038  
    1 /** \file builder.cpp
     1/*
     2 * Project: MoleCuilder
     3 * Description: creates and alters molecular systems
     4 * Copyright (C)  2010 University of Bonn. All rights reserved.
     5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.
     6 */
     7
     8 /** \file builder.cpp
    29 *
    310 *  date: Jan 1, 2007
    411 *  author: heber
     12 *
     13 */
     14
     15/*! \page Copyright notice
     16 *
     17 *  MoleCuilder - to create and alter molecular systems
     18 *  Copyright (C) 2010  University Bonn. All rights reserved.
    519 *
    620 */
     
    5367 *
    5468 */
     69
     70// include config.h
     71#ifdef HAVE_CONFIG_H
     72#include <config.h>
     73#endif
    5574
    5675#include "Helpers/MemDebug.hpp"
     
    110129}
    111130
     131void dumpMemory(){
     132  ofstream ost("molecuilder.memdump");
     133  Memory::dumpMemory(ost);
     134}
     135
    112136int main(int argc, char **argv)
    113137{
    114138  // while we are non interactive, we want to abort from asserts
    115   //ASSERT_DO(Assert::Abort);
     139  ASSERT_DO(Assert::Abort);
     140  ASSERT_HOOK(dumpMemory);
    116141  string line;
    117142  char **Arguments = NULL;
     
    121146  std::string BondGraphFileName("\n");
    122147
    123   // print version check whether arguments are present at all
    124   cout << ESPACKVersion << endl;
     148  // print version check and copyright notice
     149  cout << MOLECUILDERVERSION << endl;
     150  cout << "MoleCuilder comes with ABSOLUTELY NO WARRANTY; for details type" << endl;
     151  cout << "`molecuilder --help-warranty'." << endl;
     152  cout << "`MoleCuilder - to create and alter molecular systems." << endl;
     153  cout << "Copyright (C) 2010  University Bonn. All rights reserved." << endl;
    125154
    126155  setVerbosity(0);
    127156  // need to init the history before any action is created
    128157  ActionHistory::init();
    129 
    130   // In the interactive mode, we can leave the user the choice in case of error
    131   ASSERT_DO(Assert::Ask);
    132158
    133159  // from this moment on, we need to be sure to deeinitialize in the correct order
     
    155181      UIFactory::makeUserInterface("CommandLine");
    156182    } else {
     183      // In the interactive mode, we can leave the user the choice in case of error
     184      ASSERT_DO(Assert::Ask);
    157185      #ifdef USE_GUI_QT
    158186        DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl);
     
    161189      #else
    162190        DoLog(0) && (Log() << Verbose(0) << "Setting UI to Text." << endl);
    163         cout << ESPACKVersion << endl;
     191        cout << MOLECUILDERVERSION << endl;
    164192        UIFactory::registerFactory(new TextUIFactory::description());
    165193        UIFactory::makeUserInterface("Text");
Note: See TracChangeset for help on using the changeset viewer.