Changeset c1e0da for molecuilder/src/builder.cpp
- Timestamp:
- May 17, 2010, 5:31:35 PM (16 years ago)
- Children:
- 5fa7c5
- Parents:
- 65a563
- File:
-
- 1 edited
-
molecuilder/src/builder.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/builder.cpp
r65a563 rc1e0da 1494 1494 */ 1495 1495 static int ParseCommandLineOptions(int argc, char **argv, MoleculeListClass *&molecules, periodentafel *&periode, 1496 config& configuration, char *&ConfigFileName, list<int> &ArgcList)1496 config& configuration, char *&ConfigFileName, set<int> &ArgcList) 1497 1497 { 1498 1498 Vector x,y,z,n; // coordinates for absolute point in cell volume … … 1525 1525 case 'H': 1526 1526 case '?': 1527 ArgcList. push_back(argptr-1);1527 ArgcList.insert(argptr-1); 1528 1528 return(1); 1529 1529 break; 1530 1530 case 'v': 1531 ArgcList. push_back(argptr-1);1531 ArgcList.insert(argptr-1); 1532 1532 return(1); 1533 1533 break; 1534 1534 case 'V': 1535 ArgcList. push_back(argptr-1);1536 ArgcList. push_back(argptr);1535 ArgcList.insert(argptr-1); 1536 ArgcList.insert(argptr); 1537 1537 argptr++; 1538 1538 break; … … 2509 2509 // Parse command line options and if present create respective UI 2510 2510 { 2511 list<int> ArgcList;2512 ArgcList. push_back(0); // push back program!2513 ArgcList. push_back(1); // push back config file name2511 set<int> ArgcList; 2512 ArgcList.insert(0); // push back program! 2513 ArgcList.insert(1); // push back config file name 2514 2514 char ConfigFileName[MAXSTRINGSIZE]; 2515 2515 // handle arguments by ParseCommandLineOptions() … … 2518 2518 Arguments = Malloc<char *>(ArgcList.size(), "main - **Arguments"); 2519 2519 cout << "The following arguments are handled by CommandLineParser: "; 2520 for ( list<int>::iterator ArgcRunner = ArgcList.begin(); ArgcRunner != ArgcList.end(); ++ArgcRunner) {2520 for (set<int>::iterator ArgcRunner = ArgcList.begin(); ArgcRunner != ArgcList.end(); ++ArgcRunner) { 2521 2521 Arguments[ArgcSize] = Malloc<char>(strlen(argv[*ArgcRunner])+2, "main - *Arguments[]"); 2522 2522 strcpy(Arguments[ArgcSize], argv[*ArgcRunner]);
Note:
See TracChangeset
for help on using the changeset viewer.
