COOPY » Guide  version 0.6.5
Public Member Functions | Static Public Member Functions
coopy::store::TextBook Class Reference

#include <TextBook.h>

Inheritance diagram for coopy::store::TextBook:
coopy::store::RefCount coopy::store::CsvTextBook coopy::store::gnumeric::GnumericTextBook coopy::store::json::JsonBook coopy::store::mdb::AccessTextBook coopy::store::mdb::JackTextBook coopy::store::PolyBook coopy::store::remotesql::RemoteSqlTextBook coopy::store::ShortTextBook coopy::store::socialcalc::SocialCalcTextBook coopy::store::sqlite::SqliteTextBook coopy::store::WrapBook

Public Member Functions

 TextBook ()
virtual ~TextBook ()
virtual std::vector< std::string > getNames ()=0
virtual int getSheetCount ()
virtual bool open (const Property &config)
virtual PolySheet readSheet (const std::string &name)=0
virtual PolySheet readSheetByIndex (int index)
virtual bool save (const char *fname, const char *format)
virtual bool inplace () const
virtual bool canWrite () const
bool operator== (const TextBook &alt) const
bool equals (const TextBook &alt, const coopy::cmp::CompareFlags &flags) const
virtual bool copy (const TextBook &alt, const Property &options)
virtual bool addSheet (const SheetSchema &schema)
bool fixSchema (const SheetSchema &in, SimpleSheetSchema &out)
virtual PolySheet provideSheet (const SheetSchema &schema)
virtual std::string desc () const
virtual bool namedSheets () const
virtual TextBooktail ()
virtual bool setPool (Pool *pool)
virtual PoolgetPool () const
bool applyPool (DataSheet &sheet)
virtual bool isValid () const
virtual bool writtenToFuture () const
std::string toString ()
int addReference ()
int removeReference ()
int getReferenceCount ()

Static Public Member Functions

static bool exists (const char *fname)

Detailed Description

Definition at line 18 of file TextBook.h.

Constructor & Destructor Documentation

coopy::store::TextBook::TextBook ( ) [inline]

Definition at line 20 of file TextBook.h.

virtual coopy::store::TextBook::~TextBook ( ) [inline, virtual]

Definition at line 24 of file TextBook.h.

Member Function Documentation

int coopy::store::RefCount::addReference ( ) [inline, inherited]
virtual bool coopy::store::TextBook::addSheet ( const SheetSchema schema) [inline, virtual]
bool coopy::store::TextBook::applyPool ( DataSheet sheet) [inline]

Definition at line 92 of file TextBook.h.

References getPool(), and coopy::store::DataSheet::setPool().

Referenced by copy().

virtual bool coopy::store::TextBook::canWrite ( ) const [inline, virtual]
bool TextBook::copy ( const TextBook alt,
const Property options 
) [virtual]
virtual std::string coopy::store::TextBook::desc ( ) const [inline, virtual]
bool TextBook::equals ( const TextBook alt,
const coopy::cmp::CompareFlags flags 
) const
bool TextBook::exists ( const char *  fname) [static]

Definition at line 248 of file TextBook.cpp.

Referenced by coopy::store::CsvTextBookFactory::open().

bool TextBook::fixSchema ( const SheetSchema in,
SimpleSheetSchema out 
virtual std::vector<std::string> coopy::store::TextBook::getNames ( ) [pure virtual]
virtual Pool* coopy::store::TextBook::getPool ( ) const [inline, virtual]

Reimplemented in coopy::store::PolyBook.

Definition at line 88 of file TextBook.h.

Referenced by applyPool(), copy(), and coopy::store::PolyBook::getPool().

int coopy::store::RefCount::getReferenceCount ( ) [inline, inherited]

Definition at line 40 of file RefCount.h.

virtual int coopy::store::TextBook::getSheetCount ( ) [inline, virtual]

Reimplemented in coopy::store::PolyBook.

Definition at line 28 of file TextBook.h.

References getNames().

Referenced by coopy::store::Highlighter::apply().

virtual bool coopy::store::TextBook::inplace ( ) const [inline, virtual]
virtual bool coopy::store::TextBook::isValid ( ) const [inline, virtual]

Reimplemented in coopy::store::PolyBook.

Definition at line 96 of file TextBook.h.

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

virtual bool coopy::store::TextBook::namedSheets ( ) const [inline, virtual]
virtual bool coopy::store::TextBook::open ( const Property config) [inline, virtual]
bool coopy::store::TextBook::operator== ( const TextBook alt) const [inline]

Definition at line 54 of file TextBook.h.

References equals().

PolySheet TextBook::provideSheet ( const SheetSchema schema) [virtual]
virtual PolySheet coopy::store::TextBook::readSheet ( const std::string &  name) [pure virtual]
virtual PolySheet coopy::store::TextBook::readSheetByIndex ( int  index) [inline, virtual]
int coopy::store::RefCount::removeReference ( ) [inline, inherited]
virtual bool coopy::store::TextBook::save ( const char *  fname,
const char *  format 
) [inline, virtual]

Reimplemented in coopy::store::gnumeric::GnumericTextBook.

Definition at line 44 of file TextBook.h.

virtual bool coopy::store::TextBook::setPool ( Pool pool) [inline, virtual]
virtual TextBook& coopy::store::TextBook::tail ( ) [inline, virtual]
std::string coopy::store::TextBook::toString ( ) [inline]

Definition at line 106 of file TextBook.h.

References getNames(), readSheet(), and coopy::store::DataSheet::toString().

virtual bool coopy::store::TextBook::writtenToFuture ( ) const [inline, virtual]

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