Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

SSD::MarkedWriter Class Reference

Output writer for the "marked" output format. More...

#include <out_marked.h>

Collaboration diagram for SSD::MarkedWriter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MarkedWriter ()
 create new merged writer
 ~MarkedWriter ()
 destriy marked writer object
void run (SSD::Doc &d1, SSD::Doc &d2, SSD::DiffDijkstra &diff)
 run marked writer
void dump ()
 dump marked results

Private Attributes

SSD::Docdoc1
 first document
SSD::Docdoc2
 second document

Detailed Description

Output writer for the "marked" output format.

The marked output format consists of two xml documents: copies of the source files, but with nodes "annotated" by numbers identifying which nodes are matched with which other nodes.

This format probably is the most useful for debugging the diff application, but also for writing custom output writers, since parsing this output is by far the easiest.

Definition at line 26 of file out_marked.h.


Constructor & Destructor Documentation

SSD::MarkedWriter::MarkedWriter  )  [inline]
 

create new merged writer

Definition at line 34 of file out_marked.h.

SSD::MarkedWriter::~MarkedWriter  )  [inline]
 

destriy marked writer object

Definition at line 36 of file out_marked.h.


Member Function Documentation

void SSD::MarkedWriter::dump  ) 
 

dump marked results

Definition at line 59 of file out_marked.cc.

References doc1, doc2, and SSD::Doc::getDOM().

Here is the call graph for this function:

void SSD::MarkedWriter::run SSD::Doc d1,
SSD::Doc d2,
SSD::DiffDijkstra diff
 

run marked writer

Generate output in "marked" format

Parameters:
d1 first document
d2 second document
diff diff result

Definition at line 39 of file out_marked.cc.

References SSD::DiffDijkstraState::ass, doc1, doc2, SSD::Doc::getDOM(), SSD::markNode(), SSD::NodeAssignments::next, and SSD::DiffDijkstra::result.

Here is the call graph for this function:


Member Data Documentation

SSD::Doc* SSD::MarkedWriter::doc1 [private]
 

first document

Definition at line 29 of file out_marked.h.

Referenced by dump(), and run().

SSD::Doc* SSD::MarkedWriter::doc2 [private]
 

second document

Definition at line 31 of file out_marked.h.

Referenced by dump(), and run().


The documentation for this class was generated from the following files:
Generated on Thu Aug 4 17:59:10 2005 for SSDDiff by  doxygen 1.4.3-20050530