COOPY » Guide  version 0.6.5
Public Member Functions
coopy::cmp::Merger Class Reference

#include <Merger.h>

Public Member Functions

 Merger ()
bool merge (MergerState &state)
bool mergeRow (coopy::store::DataSheet &pivot, coopy::store::DataSheet &local, coopy::store::DataSheet &remote, MatchUnit &row_unit, Patcher &output, const CompareFlags &flags, std::vector< coopy::cmp::RowChange > &rc)

Detailed Description

Definition at line 58 of file Merger.h.


Constructor & Destructor Documentation

coopy::cmp::Merger::Merger ( ) [inline]

Definition at line 61 of file Merger.h.


Member Function Documentation

bool Merger::merge ( MergerState state)

Definition at line 500 of file Merger.cpp.

References coopy::cmp::Patcher::addHeader(), coopy::cmp::Patcher::addPoolsFromFlags(), coopy::cmp::MergerState::allIdentical, coopy::cmp::RowChange::allNames, coopy::cmp::CompareFlags::assume_header, cc, coopy::cmp::Patcher::changeColumn(), coopy::cmp::Patcher::changeName(), coopy::cmp::Patcher::changeRow(), coopy::cmp::LinkDeclare::column, coopy::cmp::NameChange::constant, dbg_printf, coopy::cmp::Patcher::declareLink(), coopy::cmp::MatchUnit::deleted, coopy::cmp::CompareFlags::exclude_columns, coopy::cmp::NameChange::final, coopy::cmp::CompareFlags::fixed_columns, coopy::cmp::MergerState::flags, coopy::cmp::CompareFlags::head_trimmed, coopy::store::DataSheet::height(), coopy::cmp::CompareFlags::include_columns, coopy::cmp::RowChange::indexes, coopy::cmp::OrderChange::indicesAfter, coopy::cmp::OrderChange::indicesBefore, coopy::cmp::LINK_DECLARE_MERGE, coopy::cmp::LinkDeclare::local, coopy::cmp::MergerState::local, coopy::cmp::MergerState::local_names, coopy::cmp::MatchUnit::localUnit, coopy::cmp::Patcher::mergeDone(), coopy::cmp::NameChange::mode, coopy::cmp::LinkDeclare::mode, coopy::cmp::OrderChange::mode, coopy::cmp::Mover::move(), coopy::cmp::NAME_CHANGE_DECLARE, coopy::cmp::NameChange::names, coopy::cmp::OrderChange::namesAfter, coopy::cmp::OrderChange::namesBefore, coopy::cmp::MergerState::ncol_local, coopy::cmp::MergerState::ncol_remote, coopy::cmp::MergerState::nrow_local, coopy::cmp::MergerState::nrow_remote, coopy::cmp::OrderChange::object, coopy::cmp::ORDER_CHANGE_DELETE, coopy::cmp::ORDER_CHANGE_INSERT, coopy::cmp::ORDER_CHANGE_MOVE, coopy::cmp::ORDER_CHANGE_RENAME, coopy::cmp::MergerState::output, coopy::cmp::LinkDeclare::pivot, coopy::cmp::MergerState::pivot, coopy::cmp::MatchUnit::pivotUnit, coopy::cmp::LinkDeclare::rc_deleted, coopy::cmp::LinkDeclare::rc_id_local, coopy::cmp::LinkDeclare::rc_id_pivot, coopy::cmp::LinkDeclare::rc_id_remote, coopy::cmp::LinkDeclare::rc_str_local, coopy::cmp::LinkDeclare::rc_str_remote, coopy::cmp::LinkDeclare::remote, coopy::cmp::MergerState::remote, coopy::cmp::MergerState::remote_names, coopy::cmp::MatchUnit::remoteUnit, coopy::store::NameSniffer::sniff(), coopy::cmp::Patcher::stripMarkup(), coopy::cmp::OrderChange::subject, coopy::store::NameSniffer::suggestColumnName(), coopy::store::IndexSniffer::suggestIndexes(), coopy::cmp::CompareFlags::tail_trimmed, coopy::cmp::Patcher::wantDiff(), coopy::cmp::Patcher::wantLinks(), and coopy::store::DataSheet::width().

Referenced by coopy::cmp::SheetCompare::compare().

bool Merger::mergeRow ( coopy::store::DataSheet pivot,
coopy::store::DataSheet local,
coopy::store::DataSheet remote,
MatchUnit row_unit,
Patcher output,
const CompareFlags flags,
std::vector< coopy::cmp::RowChange > &  rc 
)

The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines