Changeset 800dc3 for molecuilder/src/molecule_graph.cpp
- Timestamp:
- Mar 18, 2010, 11:39:57 AM (16 years ago)
- Children:
- ac86192
- Parents:
- 6acc8e4 (diff), 31ccb6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
molecuilder/src/molecule_graph.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule_graph.cpp
r6acc8e4 r800dc3 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.
