COOPY » Guide
version 0.6.5
|
#include <PatchParser.h>
Public Member Functions | |
PatchParser (Patcher *patcher, coopy::cmp::CompareFlags &flags) | |
PatchParser (Patcher *patcher, const std::vector< std::string > &cmd, coopy::cmp::CompareFlags &flags) | |
PatchParser (Patcher *patcher, const std::string &fname, coopy::cmp::CompareFlags &flags) | |
PatchParser (Patcher *patcher, coopy::store::TextBook *book, coopy::cmp::CompareFlags &flags) | |
bool | apply () |
bool | applyPatch () |
bool | applyHiliteBook (coopy::store::TextBook &patch) |
Data Fields | |
coopy::format::FormatSniffer | sniffer |
Patcher * | patcher |
coopy::store::Property | config |
std::string | fname |
std::string | table_name |
std::vector< std::string > | oneliners |
bool | use_oneliners |
const coopy::cmp::CompareFlags & | flags |
coopy::store::TextBook * | preread_book |
Definition at line 17 of file PatchParser.h.
coopy::cmp::PatchParser::PatchParser | ( | Patcher * | patcher, |
coopy::cmp::CompareFlags & | flags | ||
) | [inline] |
Definition at line 29 of file PatchParser.h.
coopy::cmp::PatchParser::PatchParser | ( | Patcher * | patcher, |
const std::vector< std::string > & | cmd, | ||
coopy::cmp::CompareFlags & | flags | ||
) | [inline] |
Definition at line 37 of file PatchParser.h.
coopy::cmp::PatchParser::PatchParser | ( | Patcher * | patcher, |
const std::string & | fname, | ||
coopy::cmp::CompareFlags & | flags | ||
) | [inline] |
Definition at line 46 of file PatchParser.h.
coopy::cmp::PatchParser::PatchParser | ( | Patcher * | patcher, |
coopy::store::TextBook * | book, | ||
coopy::cmp::CompareFlags & | flags | ||
) | [inline] |
Definition at line 55 of file PatchParser.h.
bool PatchParser::apply | ( | ) |
Definition at line 271 of file PatchParser.cpp.
References dbg_printf, coopy::format::FORMAT_PATCH_CSV, coopy::format::FORMAT_PATCH_TDIFF, coopy::format::Format::id, and NULL.
Referenced by coopy::app::Diff::apply(), applyPatch(), and generateExample().
bool PatchParser::applyHiliteBook | ( | coopy::store::TextBook & | patch | ) |
Definition at line 1311 of file PatchParser.cpp.
References coopy::cmp::RowChange::allNames, coopy::store::PolySheet::cellString(), coopy::store::PolySheet::cellSummary(), checkAllowed(), coopy::cmp::RowChange::cond, coopy::cmp::RowChange::conflicted, coopy::cmp::RowChange::conflictingParentVal, coopy::cmp::RowChange::conflictingVal, COOPY_ASSERT, dbg_printf, coopy::store::SheetCell::escaped, coopy::cmp::NameChange::final, coopy::store::TextBook::getNames(), coopy::store::PolySheet::height(), coopy::cmp::RowChange::indexes, coopy::cmp::OrderChange::indicesAfter, coopy::cmp::OrderChange::indicesBefore, coopy::cmp::RowChange::mode, coopy::cmp::OrderChange::mode, coopy::cmp::NameChange::mode, coopy::cmp::Mover::move(), coopy::cmp::NAME_CHANGE_DECLARE, coopy::cmp::NameChange::names, coopy::cmp::RowChange::names, coopy::cmp::OrderChange::namesAfter, coopy::cmp::OrderChange::namesBefore, nully(), 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::store::TextBook::readSheet(), remap(), coopy::cmp::ROW_CHANGE_CONTEXT, coopy::cmp::ROW_CHANGE_DELETE, coopy::cmp::ROW_CHANGE_INSERT, coopy::cmp::ROW_CHANGE_UPDATE, coopy::cmp::OrderChange::subject, coopy::store::SheetCell::text, coopy::cmp::RowChange::val, and coopy::store::PolySheet::width().
Referenced by coopy::app::Coopy::patch().
bool coopy::cmp::PatchParser::applyPatch | ( | ) | [inline] |
Definition at line 67 of file PatchParser.h.
References apply().
Definition at line 21 of file PatchParser.h.
Definition at line 26 of file PatchParser.h.
std::string coopy::cmp::PatchParser::fname |
Definition at line 22 of file PatchParser.h.
std::vector<std::string> coopy::cmp::PatchParser::oneliners |
Definition at line 24 of file PatchParser.h.
Definition at line 20 of file PatchParser.h.
Definition at line 27 of file PatchParser.h.
Definition at line 19 of file PatchParser.h.
std::string coopy::cmp::PatchParser::table_name |
Definition at line 23 of file PatchParser.h.
Definition at line 25 of file PatchParser.h.