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

molecule::StoreAdjacencyToFile() and molecule::StoreBondsToFile() now take additional filename.

  • since ParseCommandLineOptions() has cases j and J which use the above functions, we have to generalize these functions to work also without a given path and with arbritrary filename.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/molecule_fragmentation.cpp

    r6d0fcaa r31ccb6  
    703703
    704704    // 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);
    706710
    707711    // store Hydrogen saturation correction file
Note: See TracChangeset for help on using the changeset viewer.