Ignore:
Timestamp:
Mar 18, 2010, 11:39:57 AM (16 years ago)
Author:
Frederik Heber <heber@…>
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.
Message:

Merge branch 'FixGeneralizeStoreAdjacencyToFile' into Analysis_PairCorrelation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_graph.cpp

    r6acc8e4 r800dc3  
    982982/** Storing the bond structure of a molecule to file.
    983983 * Simply stores Atom::nr and then the Atom::nr of all bond partners per line.
    984  * \param *out output stream for debugging
    985984 * \param *path path to file
     985 * \param *filename name of file
    986986 * \return true - file written successfully, false - writing failed
    987987 */
    988 bool molecule::StoreAdjacencyToFile(char *path)
     988bool molecule::StoreAdjacencyToFile(char *path, char *filename)
    989989{
    990990  ofstream AdjacencyFile;
     
    992992  bool status = true;
    993993
    994   line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE;
     994  if (path != NULL)
     995    line << path << "/" << filename;
     996  else
     997    line << filename;
    995998  AdjacencyFile.open(line.str().c_str(), ios::out);
    996999  Log() << Verbose(1) << "Saving adjacency list ... ";
     
    10111014/** Storing the bond structure of a molecule to file.
    10121015 * Simply stores Atom::nr and then the Atom::nr of all bond partners, one per line.
    1013  * \param *out output stream for debugging
    10141016 * \param *path path to file
     1017 * \param *filename name of file
    10151018 * \return true - file written successfully, false - writing failed
    10161019 */
    1017 bool molecule::StoreBondsToFile(char *path)
     1020bool molecule::StoreBondsToFile(char *path, char *filename)
    10181021{
    10191022  ofstream BondFile;
     
    10211024  bool status = true;
    10221025
    1023   line << path << "/" << FRAGMENTPREFIX << ADJACENCYFILE;
     1026  if (path != NULL)
     1027    line << path << "/" << filename;
     1028  else
     1029    line << filename;
    10241030  BondFile.open(line.str().c_str(), ios::out);
    10251031  Log() << Verbose(1) << "Saving adjacency list ... ";
Note: See TracChangeset for help on using the changeset viewer.