Ignore:
Timestamp:
Nov 4, 2009, 7:56:04 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
4ef101, aa8542
Parents:
ec70ec
Message:

Huge change from ofstream * (const) out --> Log().

  • first shift was done via regular expressions
  • then via error messages from the code
  • note that class atom, class element and class molecule kept in parts their output stream, was they print to file.
  • make check runs fine
  • MISSING: Verbosity is not fixed for everything (i.e. if no endl; is present and next has Verbose(0) ...)

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/atom.cpp

    rec70ec r543ce4  
    107107  * \return true - \a *out present, false - \a *out is NULL
    108108 */
    109 bool atom::OutputIndexed(ofstream *out, const int ElementNo, const int AtomNo, const char *comment) const
     109bool atom::OutputIndexed(ofstream * const out, const int ElementNo, const int AtomNo, const char *comment) const
    110110{
    111111  if (out != NULL) {
     
    131131  * \return true - \a *out present, false - \a *out is NULL
    132132 */
    133 bool atom::OutputArrayIndexed(ofstream *out, const int *ElementNo, int *AtomNo, const char *comment) const
     133bool atom::OutputArrayIndexed(ofstream * const out, const int *ElementNo, int *AtomNo, const char *comment) const
    134134{
    135135  AtomNo[type->Z]++;  // increment number
     
    169169  * \return true - \a *out present, false - \a *out is NULL
    170170 */
    171 bool atom::OutputTrajectory(ofstream *out, const int *ElementNo, int *AtomNo, const int step) const
     171bool atom::OutputTrajectory(ofstream * const out, const int *ElementNo, int *AtomNo, const int step) const
    172172{
    173173  AtomNo[type->Z]++;
     
    191191 * \return true - \a *out present, false - \a *out is NULL
    192192 */
    193 bool atom::OutputTrajectoryXYZ(ofstream *out, const int step) const
     193bool atom::OutputTrajectoryXYZ(ofstream * const out, const int step) const
    194194{
    195195  if (out != NULL) {
     
    208208 * \param *AtomNo pointer to atom counter that is increased by one
    209209 */
    210 void atom::OutputMPQCLine(ofstream *out, const Vector *center, int *AtomNo = NULL) const
     210void atom::OutputMPQCLine(ofstream * const out, const Vector *center, int *AtomNo = NULL) const
    211211{
    212212  *out << "\t\t" << type->symbol << " [ " << x.x[0]-center->x[0] << "\t" << x.x[1]-center->x[1] << "\t" << x.x[2]-center->x[2] << " ]" << endl;
Note: See TracChangeset for help on using the changeset viewer.