Changeset 31ccb6
- Timestamp:
- Mar 18, 2010, 11:37:26 AM (15 years ago)
- Children:
- 800dc3
- Parents:
- 6d0fcaa
- git-author:
- Frederik Heber <heber@…> (03/18/10 11:34:39)
- git-committer:
- Frederik Heber <heber@…> (03/18/10 11:37:26)
- Location:
- molecuilder/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.hpp
r6d0fcaa r31ccb6 269 269 int FragmentMolecule(int Order, config *configuration); 270 270 bool CheckOrderAtSite(bool *AtomMask, Graph *GlobalKeySetList, int Order, int *MinimumRingSize, char *path = NULL); 271 bool StoreBondsToFile(char *path );272 bool StoreAdjacencyToFile(char *path );271 bool StoreBondsToFile(char *path, char *filename); 272 bool StoreAdjacencyToFile(char *path, char *filename); 273 273 bool CheckAdjacencyFileAgainstMolecule(char *path, atom **ListOfAtoms); 274 274 bool ParseOrderAtSiteFromFile(char *path); -
molecuilder/src/molecule_fragmentation.cpp
r6d0fcaa r31ccb6 703 703 704 704 // store Adjacency file 705 StoreAdjacencyToFile(configuration->configpath); 705 char *filename = Malloc<char> (MAXSTRINGSIZE, "molecule::FragmentMolecule - *filename"); 706 strcpy(filename, FRAGMENTPREFIX); 707 strcat(filename, ADJACENCYFILE); 708 StoreAdjacencyToFile(configuration->configpath, filename); 709 Free(&filename); 706 710 707 711 // store Hydrogen saturation correction file -
molecuilder/src/molecule_graph.cpp
r6d0fcaa r31ccb6 978 978 /** Storing the bond structure of a molecule to file. 979 979 * Simply stores Atom::nr and then the Atom::nr of all bond partners per line. 980 * \param *out output stream for debugging981 980 * \param *path path to file 981 * \param *filename name of file 982 982 * \return true - file written successfully, false - writing failed 983 983 */ 984 bool molecule::StoreAdjacencyToFile(char *path )984 bool molecule::StoreAdjacencyToFile(char *path, char *filename) 985 985 { 986 986 ofstream AdjacencyFile; … … 988 988 bool status = true; 989 989 990 line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE; 990 if (path != NULL) 991 line << path << "/" << filename; 992 else 993 line << filename; 991 994 AdjacencyFile.open(line.str().c_str(), ios::out); 992 995 Log() << Verbose(1) << "Saving adjacency list ... "; … … 1007 1010 /** Storing the bond structure of a molecule to file. 1008 1011 * Simply stores Atom::nr and then the Atom::nr of all bond partners, one per line. 1009 * \param *out output stream for debugging1010 1012 * \param *path path to file 1013 * \param *filename name of file 1011 1014 * \return true - file written successfully, false - writing failed 1012 1015 */ 1013 bool molecule::StoreBondsToFile(char *path )1016 bool molecule::StoreBondsToFile(char *path, char *filename) 1014 1017 { 1015 1018 ofstream BondFile; … … 1017 1020 bool status = true; 1018 1021 1019 line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE; 1022 if (path != NULL) 1023 line << path << "/" << filename; 1024 else 1025 line << filename; 1020 1026 BondFile.open(line.str().c_str(), ios::out); 1021 1027 Log() << Verbose(1) << "Saving adjacency list ... ";
Note:
See TracChangeset
for help on using the changeset viewer.