Changeset 31ccb6 for molecuilder/src/molecule_graph.cpp
- Timestamp:
- Mar 18, 2010, 11:37:26 AM (16 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)
- File:
-
- 1 edited
-
molecuilder/src/molecule_graph.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
