COOPY » Guide
version 0.6.5
|
#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) |
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 | ||
) |
Definition at line 49 of file Merger.cpp.
References coopy::cmp::CompareFlags::canDelete(), coopy::cmp::CompareFlags::canInsert(), coopy::cmp::CompareFlags::canUpdate(), coopy::store::DataSheet::cellSummary(), compare_string(), coopy::cmp::RowChange::cond, cond(), coopy::cmp::RowChange::conflicted, coopy::cmp::RowChange::conflictingParentVal, coopy::cmp::RowChange::conflictingVal, dbg_printf, coopy::cmp::MatchUnit::deleted, coopy::store::SheetCell::escaped, coopy::cmp::CompareFlags::fixed_columns, coopy::store::DataSheet::height(), coopy::cmp::MatchUnit::localUnit, coopy::cmp::RowChange::lRow, coopy::cmp::RowChange::mode, coopy::cmp::RowChange::names, coopy::cmp::MatchUnit::pivotUnit, coopy::cmp::RowChange::pRow, coopy::cmp::MatchUnit::remoteUnit, coopy::cmp::CompareFlags::resolve, coopy::cmp::ROW_CHANGE_CONTEXT, coopy::cmp::ROW_CHANGE_DELETE, coopy::cmp::ROW_CHANGE_INSERT, coopy::cmp::ROW_CHANGE_MOVE, coopy::cmp::ROW_CHANGE_UPDATE, coopy::cmp::RowChange::rRow, coopy::cmp::Patcher::setConflicted(), coopy::store::SheetCell::text, coopy::store::SheetCell::toString(), coopy::cmp::CompareFlags::use_order, coopy::cmp::RowChange::val, coopy::cmp::Patcher::wantDiff(), and coopy::cmp::Patcher::wantLinks().