COOPY » Guide  version 0.6.5
Public Member Functions | Static Public Member Functions | Data Fields
coopy::app::Coopy Class Reference

Collect basic Coopy functionality in one place. More...

#include <Coopy.h>

Public Member Functions

 Coopy ()
virtual ~Coopy ()
void reset ()
bool setFormat (const char *name, const char *version=NULL)
bool checkFormat ()
bool setOutput (const char *filename)
bool setOutput (coopy::store::DataSheet &sheet)
bool setOutput (coopy::store::TextBook &book)
bool compare (coopy::store::TextBook &pivot, coopy::store::TextBook &local, coopy::store::TextBook &remote)
bool compare (coopy::store::TextBook &local, coopy::store::TextBook &remote)
bool compare (coopy::store::DataSheet &pivot, coopy::store::DataSheet &local, coopy::store::DataSheet &remote)
bool compare (coopy::store::DataSheet &local, coopy::store::DataSheet &remote)
bool merge (coopy::store::DataSheet &pivot, coopy::store::DataSheet &local, coopy::store::DataSheet &remote)
bool merge (coopy::store::TextBook &pivot, coopy::store::TextBook &local, coopy::store::TextBook &remote)
bool patch (coopy::store::TextBook &local, coopy::store::TextBook &mod)
bool patch (coopy::store::DataSheet &local, coopy::store::DataSheet &mod)
int getChangeCount () const

Static Public Member Functions

static coopy::store::PolySheet createSheet ()
static coopy::store::PolyBook createBook (coopy::store::PolySheet sheet)
static coopy::store::PolyBook loadBook (const char *filename)

Data Fields

coopy::cmp::CompareFlags flags

Detailed Description

Collect basic Coopy functionality in one place.

Intended to simplify wrappers for the library in other languages.

Definition at line 22 of file Coopy.h.


Constructor & Destructor Documentation

coopy::app::Coopy::Coopy ( ) [inline]

Definition at line 31 of file Coopy.h.

virtual coopy::app::Coopy::~Coopy ( ) [inline, virtual]

Definition at line 37 of file Coopy.h.

References reset().


Member Function Documentation

bool coopy::app::Coopy::checkFormat ( ) [inline]

Definition at line 54 of file Coopy.h.

References setFormat().

bool coopy::app::Coopy::compare ( coopy::store::TextBook local,
coopy::store::TextBook remote 
) [inline]

Definition at line 79 of file Coopy.h.

References compare().

bool coopy::app::Coopy::compare ( coopy::store::DataSheet pivot,
coopy::store::DataSheet local,
coopy::store::DataSheet remote 
) [inline]

Definition at line 84 of file Coopy.h.

References compare().

bool coopy::app::Coopy::compare ( coopy::store::DataSheet local,
coopy::store::DataSheet remote 
) [inline]

Definition at line 93 of file Coopy.h.

References compare().

bool Coopy::compare ( coopy::store::TextBook pivot,
coopy::store::TextBook local,
coopy::store::TextBook remote 
)

Definition at line 11 of file Coopy.cpp.

References coopy::cmp::BookCompare::compare().

Referenced by compare(), generateExample(), and main().

coopy::store::PolyBook Coopy::createBook ( coopy::store::PolySheet  sheet) [static]

Definition at line 71 of file Coopy.cpp.

References coopy::store::PolyBook::take().

PolySheet Coopy::createSheet ( ) [static]

Definition at line 64 of file Coopy.cpp.

int coopy::app::Coopy::getChangeCount ( ) const [inline]

Definition at line 121 of file Coopy.h.

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

coopy::store::PolyBook Coopy::loadBook ( const char *  filename) [static]

Definition at line 78 of file Coopy.cpp.

References coopy::store::PolyBook::read().

Referenced by main().

bool coopy::app::Coopy::merge ( coopy::store::DataSheet pivot,
coopy::store::DataSheet local,
coopy::store::DataSheet remote 
) [inline]

Definition at line 98 of file Coopy.h.

Referenced by main().

bool Coopy::merge ( coopy::store::TextBook pivot,
coopy::store::TextBook local,
coopy::store::TextBook remote 
)

Definition at line 33 of file Coopy.cpp.

References coopy::cmp::BookCompare::compare().

bool Coopy::patch ( coopy::store::TextBook local,
coopy::store::TextBook mod 
)

Definition at line 49 of file Coopy.cpp.

References coopy::cmp::PatchParser::applyHiliteBook().

Referenced by main(), and patch().

bool coopy::app::Coopy::patch ( coopy::store::DataSheet local,
coopy::store::DataSheet mod 
) [inline]

Definition at line 114 of file Coopy.h.

References patch().

void coopy::app::Coopy::reset ( ) [inline]

Definition at line 41 of file Coopy.h.

Referenced by setFormat(), and ~Coopy().

bool coopy::app::Coopy::setFormat ( const char *  name,
const char *  version = NULL 
) [inline]

Definition at line 48 of file Coopy.h.

References coopy::cmp::Patcher::createByName(), and reset().

Referenced by checkFormat(), and main().

bool coopy::app::Coopy::setOutput ( const char *  filename) [inline]

Definition at line 59 of file Coopy.h.

Referenced by generateExample().

bool coopy::app::Coopy::setOutput ( coopy::store::DataSheet sheet) [inline]

Definition at line 64 of file Coopy.h.

References coopy::store::WrapBook::attach().

bool coopy::app::Coopy::setOutput ( coopy::store::TextBook book) [inline]

Definition at line 70 of file Coopy.h.


Field Documentation

Definition at line 29 of file Coopy.h.


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