source: molecuilder/src/atom_graphnode.cpp@ 09d3b8

Last change on this file since 09d3b8 was 543ce4, checked in by Frederik Heber <heber@…>, 16 years ago

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@…>

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[2e2a70]1/*
2 * atom_graphnode.cpp
3 *
4 * Created on: Oct 19, 2009
5 * Author: heber
6 */
7
8#include "atom_graphnode.hpp"
[543ce4]9#include "log.hpp"
[2e2a70]10#include "verbose.hpp"
11
12/** Constructor of class GraphNode.
13 */
14GraphNode::GraphNode()
15{
16};
17
18/** Destructor of class GraphNode.
19 */
20GraphNode::~GraphNode()
21{
22};
23
24/** Output graph info of this atom.
25 * \param *out output stream
26 */
[543ce4]27void GraphNode::OutputGraphInfo() const
[2e2a70]28{
[543ce4]29 Log() << Verbose(2) << "Atom " << Name << " is " << ((SeparationVertex) ? "a" : "not a") << " separation vertex, components are ";
30 OutputComponentNumber();
31 Log() << Verbose(0) << " with Lowpoint " << LowpointNr << " and Graph Nr. " << GraphNr << "." << endl;
[2e2a70]32};
33
34/** Output a list of flags, stating whether the bond was visited or not.
35 * Note, we make use of the last entry of the ComponentNr always being -1 if allocated.
36 * \param *out output stream for debugging
37 */
[543ce4]38void GraphNode::OutputComponentNumber() const
[2e2a70]39{
40 if (ComponentNr != NULL) {
41 for (int i=0; ComponentNr[i] != -1; i++)
[543ce4]42 Log() << Verbose(0) << ComponentNr[i] << " ";
[2e2a70]43 }
44};
45
Note: See TracBrowser for help on using the repository browser.