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

#include <SqliteTextBook.h>

Inheritance diagram for coopy::store::sqlite::SqliteTextBook:
coopy::store::TextBook coopy::store::RefCount

Public Member Functions

 SqliteTextBook (bool textual=false)
virtual ~SqliteTextBook ()
void clear ()
virtual bool read (const char *fname, bool can_create, const Property &config, SqliteTextBook *base=0)
virtual bool save (const char *fname, const char *format, bool itextual=false)
virtual bool open (const Property &config, SqliteTextBook *base=0)
std::vector< std::string > getNames ()
PolySheet readSheet (const std::string &name)
virtual bool inplace () const
virtual bool addSheet (const SheetSchema &schema)
virtual bool writtenToFuture () const
virtual std::string desc () const
virtual int getSheetCount ()
virtual bool open (const Property &config)
virtual PolySheet readSheetByIndex (int index)
virtual bool save (const char *fname, const char *format)
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)
bool fixSchema (const SheetSchema &in, SimpleSheetSchema &out)
virtual PolySheet provideSheet (const SheetSchema &schema)
virtual bool namedSheets () const
virtual TextBooktail ()
virtual bool setPool (Pool *pool)
virtual PoolgetPool () const
bool applyPool (DataSheet &sheet)
virtual bool isValid () 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 23 of file SqliteTextBook.h.

Constructor & Destructor Documentation

SqliteTextBook::SqliteTextBook ( bool  textual = false)

Definition at line 58 of file SqliteTextBook.cpp.

References NULL.

SqliteTextBook::~SqliteTextBook ( ) [virtual]

Definition at line 66 of file SqliteTextBook.cpp.

Member Function Documentation

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

Definition at line 70 of file SqliteTextBook.cpp.

References DB, and NULL.

bool TextBook::copy ( const TextBook alt,
const Property options 
) [virtual, inherited]

Reimplemented in coopy::store::PolyBook.

Definition at line 66 of file TextBook.cpp.

References coopy::store::PolySheet::addedHeader(), coopy::store::TextBook::applyPool(), coopy::store::ColumnType::asSqlite(), coopy::store::Value::asString(), coopy::store::PolySheet::beginTransaction(), coopy_is_verbose(), dbg_printf, coopy::store::PolySheet::deleteData(), coopy::store::DataSheet::desc(), coopy::store::PolySheet::endTransaction(), coopy::store::TextBook::fixSchema(), coopy::store::SheetRow::flush(), coopy::store::PolySheet::forceWidth(), coopy::store::Property::get(), coopy::store::ColumnInfo::getColumnType(), coopy::store::ColumnInfo::getName(), coopy::store::TextBook::getNames(), coopy::store::TextBook::getPool(), coopy::store::PolySheet::getSchema(), coopy::store::PolySheet::hasDimension(), coopy::store::PolySheet::hasExternalColumnNames(), coopy::store::ColumnInfo::hasName(), coopy::store::PolySheet::height(), coopy::store::PolySheet::insertRow(), coopy::store::PolySheet::isValid(), NULL, coopy::store::TextBook::readSheet(), coopy::store::SheetRow::setCell(), coopy::store::SheetSchema::setHeaderHeight(), coopy::store::PolySheet::tail(), coopy::store::SheetSchema::toString(), and coopy::store::PolySheet::width().

Referenced by coopy::store::remotesql::RemoteSqlTextBookFactory::open(), coopy::store::mdb::JackTextBookFactory::open(), coopy::store::gnumeric::GnumericTextBookFactory::open(), coopy::store::mdb::AccessTextBookFactory::open(), coopy::store::sqlite::SqliteTextBookFactory::openNormal(), and coopy::store::sqlite::SqliteTextBookFactory::openTextual().

virtual std::string coopy::store::sqlite::SqliteTextBook::desc ( ) const [inline, virtual]

Reimplemented from coopy::store::TextBook.

Definition at line 56 of file SqliteTextBook.h.

bool TextBook::equals ( const TextBook alt,
const coopy::cmp::CompareFlags flags 
) const [inherited]
bool TextBook::exists ( const char *  fname) [static, inherited]

Definition at line 248 of file TextBook.cpp.

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

bool TextBook::fixSchema ( const SheetSchema in,
SimpleSheetSchema out 
) [inherited]
std::vector<std::string> coopy::store::sqlite::SqliteTextBook::getNames ( ) [inline, virtual]

Implements coopy::store::TextBook.

Definition at line 39 of file SqliteTextBook.h.

Referenced by main().

virtual Pool* coopy::store::TextBook::getPool ( ) const [inline, virtual, inherited]
int coopy::store::RefCount::getReferenceCount ( ) [inline, inherited]

Definition at line 40 of file RefCount.h.

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

Reimplemented in coopy::store::PolyBook.

Definition at line 28 of file TextBook.h.

References coopy::store::TextBook::getNames().

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

virtual bool coopy::store::sqlite::SqliteTextBook::inplace ( ) const [inline, virtual]

Reimplemented from coopy::store::TextBook.

Definition at line 45 of file SqliteTextBook.h.

Referenced by coopy::store::sqlite::SqliteTextBookFactory::openNormal().

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

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, inherited]
bool SqliteTextBook::open ( const Property config,
SqliteTextBook base = 0 
) [virtual]
virtual bool coopy::store::TextBook::open ( const Property config) [inline, virtual, inherited]
bool coopy::store::TextBook::operator== ( const TextBook alt) const [inline, inherited]

Definition at line 54 of file TextBook.h.

References coopy::store::TextBook::equals().

PolySheet TextBook::provideSheet ( const SheetSchema schema) [virtual, inherited]
bool SqliteTextBook::read ( const char *  fname,
bool  can_create,
const Property config,
SqliteTextBook base = 0 
) [virtual]
PolySheet SqliteTextBook::readSheet ( const std::string &  name) [virtual]

Implements coopy::store::TextBook.

Definition at line 409 of file SqliteTextBook.cpp.

References coopy::store::sqlite::SqliteSheet::connect(), and NULL.

Referenced by main().

virtual PolySheet coopy::store::TextBook::readSheetByIndex ( int  index) [inline, virtual, inherited]
int coopy::store::RefCount::removeReference ( ) [inline, inherited]
bool SqliteTextBook::save ( const char *  fname,
const char *  format,
bool  itextual = false 
) [virtual]
virtual bool coopy::store::TextBook::save ( const char *  fname,
const char *  format 
) [inline, virtual, inherited]

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

Definition at line 44 of file TextBook.h.

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

Reimplemented from coopy::store::TextBook.

Definition at line 52 of file SqliteTextBook.h.

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