COOPY » Guide  version 0.6.5
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes
coopy::cmp::MergeOutputTdiff Class Reference

#include <MergeOutputTdiff.h>

Inheritance diagram for coopy::cmp::MergeOutputTdiff:
coopy::cmp::MergeOutput coopy::cmp::Patcher

Public Member Functions

 MergeOutputTdiff ()
bool check (std::map< std::string, bool > &m, const std::string &name)
virtual bool wantDiff ()
virtual bool changeColumn (const OrderChange &change)
virtual bool changeRow (const RowChange &change)
bool changeRow (const RowChange &change, bool factored, bool caching)
bool operateRow (const RowChange &change, const char *tag)
bool updateRow (const RowChange &change, const char *tag, bool select, bool update, bool practice, bool factored)
virtual bool mergeStart ()
virtual bool mergeDone ()
virtual bool changeName (const NameChange &change)
virtual bool setSheet (const char *name)
void showSheet (bool bound=false)
void flushRows ()
virtual bool changePool (const PoolChange &change)
virtual bool wantLinks ()
virtual bool changeConfig (const ConfigChange &change)
virtual bool declareLink (const LinkDeclare &decl)
virtual bool declareNames (const std::vector< std::string > &names, bool isFinal)
 This method is headed toward deprecation in favor of changeName.
virtual bool mergeAllDone ()
virtual bool addSheet (const char *name, const coopy::store::PolySheet &sheet)
virtual bool removeSheet (const char *name)
virtual bool renameSheet (const char *name0, const char *name1)
virtual bool setFlags (const CompareFlags &flags)
const CompareFlagsgetFlags () const
CompareFlagsgetMutableFlags ()
virtual bool addRow (const char *tag, const std::vector< coopy::store::SheetCell > &row, const std::string &blank)
virtual bool addRow (const char *tag, const std::vector< std::string > &row, const std::string &blank)
virtual bool addHeader (const char *tag, const std::vector< coopy::store::SheetCell > &row, const std::string &blank)
virtual bool addHeader (const char *tag, const std::vector< std::string > &row, const std::string &blank)
virtual bool stripMarkup ()
virtual void attachSheet (coopy::store::PolySheet sheet)
void attachBook (coopy::store::TextBook &book)
coopy::store::TextBookgetBook ()
virtual bool startOutput (const std::string &output, CompareFlags &flags)
virtual bool stopOutput (const std::string &output, CompareFlags &flags)
virtual bool needOutputBook ()
virtual bool outputStartsFromInput ()
void attachOutputBook (coopy::store::TextBook &book)
coopy::store::TextBookgetOutputBook ()
virtual int getChangeCount ()
virtual void setConflicted ()
virtual bool isConflicted () const
bool applyPool (const PoolChange &change)
bool addPoolsFromFlags (const coopy::store::DataSheet &sheet, bool msg=true)
bool addPoolsFromSchema (const coopy::store::DataSheet &sheet, const coopy::store::NameSniffer &sniffer, const std::string &sheetName, bool msg=true)
virtual coopy::store::PolySheet getSheet ()
virtual bool metaHint (const coopy::store::DataSheet &sheet)
virtual bool setNames (bool forceSheetChange=false)

Static Public Member Functions

static PatchercreateByName (const char *name, const char *version=NULL)
static bool copyFile (const char *src, const char *dest)

Data Fields

std::vector< std::string > ops
std::vector< std::string > opsLoose
std::map< std::string, bool > activeColumn
std::map< std::string, bool > showForSelect
std::map< std::string, bool > showForDescribe
std::map< std::string, bool > showForCond
std::map< std::string, bool > prevSelect
std::map< std::string, bool > prevDescribe
std::map< std::string, bool > prevCond
bool constantColumns
std::vector< std::string > columns
bool showedColumns
std::string sheetName
bool sheetNameShown
bool sheetNameBreakShown
bool lastWasFactored
std::vector
< coopy::cmp::RowChange
rowCache
coopy::cmp::Viterbi formLattice

Protected Attributes

CompareFlags flags
FILE * out
coopy::store::PolySheet patch_sheet
coopy::store::PolySheet active_sheet
coopy::store::TextBookpatch_book
coopy::store::TextBookoutput_book
bool conflicted
bool pending

Detailed Description

Definition at line 15 of file MergeOutputTdiff.h.


Constructor & Destructor Documentation

MergeOutputTdiff::MergeOutputTdiff ( )

Definition at line 81 of file MergeOutputTdiff.cpp.


Member Function Documentation

virtual bool coopy::cmp::Patcher::addHeader ( const char *  tag,
const std::vector< coopy::store::SheetCell > &  row,
const std::string &  blank 
) [inline, virtual, inherited]
virtual bool coopy::cmp::Patcher::addHeader ( const char *  tag,
const std::vector< std::string > &  row,
const std::string &  blank 
) [inline, virtual, inherited]

Definition at line 426 of file Patcher.h.

References coopy::cmp::Patcher::addHeader().

bool Patcher::addPoolsFromFlags ( const coopy::store::DataSheet sheet,
bool  msg = true 
) [inherited]
bool Patcher::addPoolsFromSchema ( const coopy::store::DataSheet sheet,
const coopy::store::NameSniffer sniffer,
const std::string &  sheetName,
bool  msg = true 
) [inherited]
virtual bool coopy::cmp::Patcher::addRow ( const char *  tag,
const std::vector< coopy::store::SheetCell > &  row,
const std::string &  blank 
) [inline, virtual, inherited]

Reimplemented in coopy::cmp::MergeOutputPatch.

Definition at line 406 of file Patcher.h.

Referenced by coopy::cmp::Patcher::addHeader(), and coopy::cmp::Patcher::addRow().

virtual bool coopy::cmp::Patcher::addRow ( const char *  tag,
const std::vector< std::string > &  row,
const std::string &  blank 
) [inline, virtual, inherited]

Definition at line 410 of file Patcher.h.

References coopy::cmp::Patcher::addRow().

virtual bool coopy::cmp::Patcher::addSheet ( const char *  name,
const coopy::store::PolySheet sheet 
) [inline, virtual, inherited]

Definition at line 379 of file Patcher.h.

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

bool Patcher::applyPool ( const PoolChange change) [inherited]
void Patcher::attachBook ( coopy::store::TextBook book) [inherited]
void coopy::cmp::Patcher::attachOutputBook ( coopy::store::TextBook book) [inline, inherited]

Definition at line 466 of file Patcher.h.

References coopy::cmp::Patcher::output_book.

Referenced by csv_merge(), and csvs_diff().

virtual void coopy::cmp::Patcher::attachSheet ( coopy::store::PolySheet  sheet) [inline, virtual, inherited]

Definition at line 442 of file Patcher.h.

References coopy::cmp::Patcher::patch_sheet.

bool MergeOutputTdiff::changeColumn ( const OrderChange change) [virtual]
virtual bool coopy::cmp::Patcher::changeConfig ( const ConfigChange change) [inline, virtual, inherited]
bool MergeOutputTdiff::changeName ( const NameChange change) [virtual]
bool MergeOutputTdiff::changePool ( const PoolChange change) [virtual]
virtual bool coopy::cmp::MergeOutputTdiff::changeRow ( const RowChange change) [inline, virtual]

Reimplemented from coopy::cmp::Patcher.

Definition at line 48 of file MergeOutputTdiff.h.

bool MergeOutputTdiff::changeRow ( const RowChange change,
bool  factored,
bool  caching 
)
bool coopy::cmp::MergeOutputTdiff::check ( std::map< std::string, bool > &  m,
const std::string &  name 
) [inline]

Definition at line 40 of file MergeOutputTdiff.h.

bool Patcher::copyFile ( const char *  src,
const char *  dest 
) [static, inherited]

Definition at line 130 of file Patcher.cpp.

References NULL.

Patcher * Patcher::createByName ( const char *  name,
const char *  version = NULL 
) [static, inherited]

Definition at line 54 of file Patcher.cpp.

References NULL.

Referenced by coopy::app::Coopy::setFormat().

virtual bool coopy::cmp::Patcher::declareLink ( const LinkDeclare decl) [inline, virtual, inherited]
virtual bool coopy::cmp::Patcher::declareNames ( const std::vector< std::string > &  names,
bool  isFinal 
) [inline, virtual, inherited]

This method is headed toward deprecation in favor of changeName.

Called with a sequence of column names. It is called twice. First, with final=false, giving an initial sequence. Then, a series of changeColumn() calls may happen, specifying manipulations of the columns. After all changeColumn() calls have happened, this method is called again, with final=true, giving a final sequence of column names.

Reimplemented in coopy::cmp::MergeOutputCsvDiffV0p2, coopy::cmp::MergeOutputHumanDiff, and coopy::cmp::SheetPatcher.

Definition at line 351 of file Patcher.h.

Referenced by coopy::cmp::Patcher::changeName().

void MergeOutputTdiff::flushRows ( )

Definition at line 475 of file MergeOutputTdiff.cpp.

References coopy_is_verbose().

coopy::store::TextBook* coopy::cmp::Patcher::getBook ( ) [inline, inherited]

Definition at line 448 of file Patcher.h.

References coopy::cmp::Patcher::patch_book.

virtual int coopy::cmp::Patcher::getChangeCount ( ) [inline, virtual, inherited]

Reimplemented in coopy::cmp::SheetPatcher.

Definition at line 474 of file Patcher.h.

Referenced by coopy::app::Coopy::getChangeCount().

const CompareFlags& coopy::cmp::Patcher::getFlags ( ) const [inline, inherited]

Definition at line 394 of file Patcher.h.

References coopy::cmp::Patcher::flags.

Referenced by coopy::cmp::MergeOutputFilter::changePool().

CompareFlags& coopy::cmp::Patcher::getMutableFlags ( ) [inline, inherited]

Definition at line 398 of file Patcher.h.

References coopy::cmp::Patcher::flags.

coopy::store::TextBook* coopy::cmp::Patcher::getOutputBook ( ) [inline, inherited]

Definition at line 470 of file Patcher.h.

References coopy::cmp::Patcher::output_book.

coopy::store::PolySheet Patcher::getSheet ( ) [virtual, inherited]
virtual bool coopy::cmp::Patcher::isConflicted ( ) const [inline, virtual, inherited]

Reimplemented in coopy::cmp::MergeOutputFilter.

Definition at line 484 of file Patcher.h.

References coopy::cmp::Patcher::conflicted.

Referenced by coopy::cmp::MergeOutputFilter::isConflicted().

virtual bool coopy::cmp::Patcher::mergeAllDone ( ) [inline, virtual, inherited]
bool MergeOutputTdiff::mergeDone ( ) [virtual]

Reimplemented from coopy::cmp::Patcher.

Definition at line 129 of file MergeOutputTdiff.cpp.

bool MergeOutputTdiff::mergeStart ( ) [virtual]
bool Patcher::metaHint ( const coopy::store::DataSheet sheet) [virtual, inherited]
virtual bool coopy::cmp::Patcher::needOutputBook ( ) [inline, virtual, inherited]
bool MergeOutputTdiff::operateRow ( const RowChange change,
const char *  tag 
)

Definition at line 201 of file MergeOutputTdiff.cpp.

References cond(), coopy::cmp::RowChange::names, and stringy().

virtual bool coopy::cmp::Patcher::outputStartsFromInput ( ) [inline, virtual, inherited]
virtual bool coopy::cmp::Patcher::removeSheet ( const char *  name) [inline, virtual, inherited]

Definition at line 384 of file Patcher.h.

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

virtual bool coopy::cmp::Patcher::renameSheet ( const char *  name0,
const char *  name1 
) [inline, virtual, inherited]

Definition at line 388 of file Patcher.h.

virtual void coopy::cmp::Patcher::setConflicted ( ) [inline, virtual, inherited]
bool Patcher::setFlags ( const CompareFlags flags) [virtual, inherited]
virtual bool coopy::cmp::Patcher::setNames ( bool  forceSheetChange = false) [inline, virtual, inherited]

Reimplemented in coopy::cmp::SheetPatcher.

Definition at line 502 of file Patcher.h.

bool MergeOutputTdiff::setSheet ( const char *  name) [virtual]

Reimplemented from coopy::cmp::Patcher.

Definition at line 466 of file MergeOutputTdiff.cpp.

void MergeOutputTdiff::showSheet ( bool  bound = false)

Definition at line 109 of file MergeOutputTdiff.cpp.

References coopy::cmp::CompareFlags::omit_sheet_name.

bool Patcher::startOutput ( const std::string &  output,
CompareFlags flags 
) [virtual, inherited]

Definition at line 104 of file Patcher.cpp.

References NULL, and coopy::cmp::CompareFlags::out.

Referenced by coopy::app::Diff::apply().

bool Patcher::stopOutput ( const std::string &  output,
CompareFlags flags 
) [virtual, inherited]

Definition at line 120 of file Patcher.cpp.

References coopy::cmp::CompareFlags::out.

Referenced by coopy::app::Diff::apply().

virtual bool coopy::cmp::Patcher::stripMarkup ( ) [inline, virtual, inherited]

Definition at line 436 of file Patcher.h.

Referenced by coopy::cmp::Merger::merge().

bool MergeOutputTdiff::updateRow ( const RowChange change,
const char *  tag,
bool  select,
bool  update,
bool  practice,
bool  factored 
)
virtual bool coopy::cmp::MergeOutputTdiff::wantDiff ( ) [inline, virtual]

Reimplemented from coopy::cmp::MergeOutput.

Definition at line 45 of file MergeOutputTdiff.h.

virtual bool coopy::cmp::Patcher::wantLinks ( ) [inline, virtual, inherited]

Field Documentation

Definition at line 310 of file Patcher.h.

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::activeColumn

Definition at line 20 of file MergeOutputTdiff.h.

std::vector<std::string> coopy::cmp::MergeOutputTdiff::columns

Definition at line 28 of file MergeOutputTdiff.h.

bool coopy::cmp::Patcher::conflicted [protected, inherited]

Definition at line 27 of file MergeOutputTdiff.h.

CompareFlags coopy::cmp::Patcher::flags [protected, inherited]

Definition at line 36 of file MergeOutputTdiff.h.

Definition at line 33 of file MergeOutputTdiff.h.

std::vector<std::string> coopy::cmp::MergeOutputTdiff::ops

Definition at line 17 of file MergeOutputTdiff.h.

std::vector<std::string> coopy::cmp::MergeOutputTdiff::opsLoose

Definition at line 18 of file MergeOutputTdiff.h.

FILE* coopy::cmp::Patcher::out [protected, inherited]

Definition at line 308 of file Patcher.h.

Referenced by coopy::cmp::Patcher::Patcher().

Definition at line 311 of file Patcher.h.

Referenced by coopy::cmp::Patcher::getBook(), and coopy::cmp::Patcher::Patcher().

Definition at line 309 of file Patcher.h.

Referenced by coopy::cmp::Patcher::attachSheet().

bool coopy::cmp::Patcher::pending [protected, inherited]

Definition at line 314 of file Patcher.h.

Referenced by coopy::cmp::Patcher::Patcher().

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::prevCond

Definition at line 26 of file MergeOutputTdiff.h.

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::prevDescribe

Definition at line 25 of file MergeOutputTdiff.h.

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::prevSelect

Definition at line 24 of file MergeOutputTdiff.h.

Definition at line 35 of file MergeOutputTdiff.h.

Definition at line 30 of file MergeOutputTdiff.h.

Definition at line 32 of file MergeOutputTdiff.h.

Definition at line 31 of file MergeOutputTdiff.h.

Definition at line 29 of file MergeOutputTdiff.h.

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::showForCond

Definition at line 23 of file MergeOutputTdiff.h.

Definition at line 22 of file MergeOutputTdiff.h.

std::map<std::string,bool> coopy::cmp::MergeOutputTdiff::showForSelect

Definition at line 21 of file MergeOutputTdiff.h.


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