Changes in src/builder.cpp [952f38:490038]
- 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 2 9 * 3 10 * date: Jan 1, 2007 4 11 * 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. 5 19 * 6 20 */ … … 53 67 * 54 68 */ 69 70 // include config.h 71 #ifdef HAVE_CONFIG_H 72 #include <config.h> 73 #endif 55 74 56 75 #include "Helpers/MemDebug.hpp" … … 110 129 } 111 130 131 void dumpMemory(){ 132 ofstream ost("molecuilder.memdump"); 133 Memory::dumpMemory(ost); 134 } 135 112 136 int main(int argc, char **argv) 113 137 { 114 138 // 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); 116 141 string line; 117 142 char **Arguments = NULL; … … 121 146 std::string BondGraphFileName("\n"); 122 147 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; 125 154 126 155 setVerbosity(0); 127 156 // need to init the history before any action is created 128 157 ActionHistory::init(); 129 130 // In the interactive mode, we can leave the user the choice in case of error131 ASSERT_DO(Assert::Ask);132 158 133 159 // from this moment on, we need to be sure to deeinitialize in the correct order … … 155 181 UIFactory::makeUserInterface("CommandLine"); 156 182 } else { 183 // In the interactive mode, we can leave the user the choice in case of error 184 ASSERT_DO(Assert::Ask); 157 185 #ifdef USE_GUI_QT 158 186 DoLog(0) && (Log() << Verbose(0) << "Setting UI to QT4." << endl); … … 161 189 #else 162 190 DoLog(0) && (Log() << Verbose(0) << "Setting UI to Text." << endl); 163 cout << ESPACKVersion<< endl;191 cout << MOLECUILDERVERSION << endl; 164 192 UIFactory::registerFactory(new TextUIFactory::description()); 165 193 UIFactory::makeUserInterface("Text");
Note:
See TracChangeset
for help on using the changeset viewer.