Changes in / [b48ba6:c7b1e7]
- Location:
- src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.hpp
rb48ba6 rc7b1e7 268 268 int FragmentMolecule(int Order, config *configuration); 269 269 bool CheckOrderAtSite(bool *AtomMask, Graph *GlobalKeySetList, int Order, int *MinimumRingSize, char *path = NULL); 270 bool StoreBondsToFile(char *path );271 bool StoreAdjacencyToFile(char *path );270 bool StoreBondsToFile(char *path, char *filename); 271 bool StoreAdjacencyToFile(char *path, char *filename); 272 272 bool CheckAdjacencyFileAgainstMolecule(char *path, atom **ListOfAtoms); 273 273 bool ParseOrderAtSiteFromFile(char *path); -
src/molecule_fragmentation.cpp
rb48ba6 rc7b1e7 704 704 705 705 // store Adjacency file 706 StoreAdjacencyToFile(configuration->configpath); 706 char *filename = Malloc<char> (MAXSTRINGSIZE, "molecule::FragmentMolecule - *filename"); 707 strcpy(filename, FRAGMENTPREFIX); 708 strcat(filename, ADJACENCYFILE); 709 StoreAdjacencyToFile(configuration->configpath, filename); 710 Free(&filename); 707 711 708 712 // store Hydrogen saturation correction file -
src/molecule_graph.cpp
rb48ba6 rc7b1e7 982 982 /** Storing the bond structure of a molecule to file. 983 983 * Simply stores Atom::nr and then the Atom::nr of all bond partners per line. 984 * \param *out output stream for debugging985 984 * \param *path path to file 985 * \param *filename name of file 986 986 * \return true - file written successfully, false - writing failed 987 987 */ 988 bool molecule::StoreAdjacencyToFile(char *path )988 bool molecule::StoreAdjacencyToFile(char *path, char *filename) 989 989 { 990 990 ofstream AdjacencyFile; … … 992 992 bool status = true; 993 993 994 line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE; 994 if (path != NULL) 995 line << path << "/" << filename; 996 else 997 line << filename; 995 998 AdjacencyFile.open(line.str().c_str(), ios::out); 996 999 Log() << Verbose(1) << "Saving adjacency list ... "; … … 1011 1014 /** Storing the bond structure of a molecule to file. 1012 1015 * Simply stores Atom::nr and then the Atom::nr of all bond partners, one per line. 1013 * \param *out output stream for debugging1014 1016 * \param *path path to file 1017 * \param *filename name of file 1015 1018 * \return true - file written successfully, false - writing failed 1016 1019 */ 1017 bool molecule::StoreBondsToFile(char *path )1020 bool molecule::StoreBondsToFile(char *path, char *filename) 1018 1021 { 1019 1022 ofstream BondFile; … … 1021 1024 bool status = true; 1022 1025 1023 line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE; 1026 if (path != NULL) 1027 line << path << "/" << filename; 1028 else 1029 line << filename; 1024 1030 BondFile.open(line.str().c_str(), ios::out); 1025 1031 Log() << Verbose(1) << "Saving adjacency list ... ";
Note:
See TracChangeset
for help on using the changeset viewer.