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

out_merged.cc File Reference

#include <iostream>
#include <sstream>
#include "config.h"
#include "doc.h"
#include "diff.h"
#include <libxml/tree.h>
#include "util.h"
#include "out_merged.h"
#include "out_common.h"

Include dependency graph for out_merged.cc:

Go to the source code of this file.

Namespaces

namespace  SSD

Defines

#define NAMESPACE_MERGED   (xmlChar*)"merged-diff"
#define INSERTED   (xmlChar*)"ins"
#define DELETED   (xmlChar*)"del"
#define MOVED_AWAY   (xmlChar*)"moved-away"
#define MOVED_HERE   (xmlChar*)"moved-here"
#define EDIT_NODE   (xmlChar*)"node"
#define EDIT_CONT   (xmlChar*)"content"
#define EDIT_FOLL   (xmlChar*)"following"
#define INS_TEXT   (xmlChar*)"text-moved-here"
#define REM_TEXT   (xmlChar*)"text-moved-away"
#define REM_ATTR   (xmlChar*)"attr-moved-away"
#define A_INSERTED   (xmlChar*)"attr-ins"
#define A_DELETED   (xmlChar*)"attr-del"
#define A_MOVED_HERE   (xmlChar*)"attr-moved-here"
#define A_SEPARATOR   (xmlChar*)";"
#define OUTPUT_FIRST   1
#define OUTPUT_SECOND   2
#define OUTPUT_BOTH   (OUTPUT_FIRST | OUTPUT_SECOND)

Functions

static void SSD::markNode (xmlNode *node, xmlChar *text, xmlNsPtr ns)
static void SSD::xmlAppendNsProp (xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, const xmlChar *buf, const xmlChar *sep)
void SSD::attr_diff (xmlNodePtr diff, xmlNsPtr ns, xmlNodePtr p1, xmlNodePtr p2, hash_map< xmlNodePtr, xmlNodePtr, hash< void * > > &map, set< xmlNodePtr > &known, int output_only)
void SSD::rec_diff (xmlNodePtr diff, xmlNsPtr ns, xmlNodePtr p1, xmlNodePtr p2, hash_map< xmlNodePtr, xmlNodePtr, hash< void * > > &map, set< xmlNodePtr > &known, int output_only)


Define Documentation

#define A_DELETED   (xmlChar*)"attr-del"
 

Definition at line 38 of file out_merged.cc.

Referenced by SSD::attr_diff().

#define A_INSERTED   (xmlChar*)"attr-ins"
 

Definition at line 37 of file out_merged.cc.

Referenced by SSD::attr_diff().

#define A_MOVED_HERE   (xmlChar*)"attr-moved-here"
 

Definition at line 40 of file out_merged.cc.

Referenced by SSD::attr_diff().

#define A_SEPARATOR   (xmlChar*)";"
 

Definition at line 41 of file out_merged.cc.

Referenced by SSD::attr_diff().

#define DELETED   (xmlChar*)"del"
 

Definition at line 28 of file out_merged.cc.

Referenced by SSD::rec_diff().

#define EDIT_CONT   (xmlChar*)"content"
 

Definition at line 32 of file out_merged.cc.

#define EDIT_FOLL   (xmlChar*)"following"
 

Definition at line 33 of file out_merged.cc.

#define EDIT_NODE   (xmlChar*)"node"
 

Definition at line 31 of file out_merged.cc.

#define INS_TEXT   (xmlChar*)"text-moved-here"
 

Definition at line 34 of file out_merged.cc.

Referenced by SSD::rec_diff().

#define INSERTED   (xmlChar*)"ins"
 

Definition at line 27 of file out_merged.cc.

Referenced by SSD::rec_diff().

#define MOVED_AWAY   (xmlChar*)"moved-away"
 

Definition at line 29 of file out_merged.cc.

Referenced by SSD::rec_diff().

#define MOVED_HERE   (xmlChar*)"moved-here"
 

Definition at line 30 of file out_merged.cc.

Referenced by SSD::rec_diff().

#define NAMESPACE_MERGED   (xmlChar*)"merged-diff"
 

Definition at line 25 of file out_merged.cc.

Referenced by SSD::MergedWriter::run().

#define OUTPUT_BOTH   (OUTPUT_FIRST | OUTPUT_SECOND)
 

Definition at line 72 of file out_merged.cc.

Referenced by SSD::XUpdateWriter::run(), and SSD::MergedWriter::run().

#define OUTPUT_FIRST   1
 

Definition at line 70 of file out_merged.cc.

Referenced by SSD::attr_diff(), SSD::rec_diff(), and SSD::XUpdateWriter::recDiff().

#define OUTPUT_SECOND   2
 

Definition at line 71 of file out_merged.cc.

Referenced by SSD::attr_diff(), SSD::rec_diff(), and SSD::XUpdateWriter::recDiff().

#define REM_ATTR   (xmlChar*)"attr-moved-away"
 

Definition at line 36 of file out_merged.cc.

Referenced by SSD::attr_diff().

#define REM_TEXT   (xmlChar*)"text-moved-away"
 

Definition at line 35 of file out_merged.cc.

Referenced by SSD::rec_diff().


Generated on Thu Aug 4 17:57:58 2005 for SSDDiff by  doxygen 1.4.3-20050530