COOPY » Guide
version 0.6.5
|
An abstract table. More...
#include <DataSheet.h>
Public Member Functions | |
DataSheet () | |
virtual | ~DataSheet () |
virtual int | width () const =0 |
virtual int | height () const =0 |
virtual std::string | cellString (int x, int y) const =0 |
virtual std::string | cellString (int x, int y, bool &escaped) const |
virtual SheetCell | cellSummary (int x, int y) const |
virtual bool | cellString (int x, int y, const std::string &str) |
sets the contents of cell in column x, row y to a specified string value | |
virtual bool | cellString (int x, int y, const std::string &str, bool escaped) |
sets the contents of cell in column x, row y to a specified string value, or to NULL if "escaped" is set. | |
virtual bool | cellSummary (int x, int y, const SheetCell &c) |
sets the contents of cell in column x, row y to a specified value. | |
virtual bool | canEscape () const |
virtual SheetCell | getCell (int x, int y) const |
virtual bool | setCell (int x, int y, const SheetCell &c) |
set contents of cell in column x, row y | |
std::string | encode (const SheetStyle &style) const |
Render table as serialized text, using the specified style. | |
std::string | toString () const |
Render table as serialized text, using a default style. | |
virtual bool | clearCache () |
Remove any cached values if used, e.g. | |
virtual SheetSchema * | getSchema () const |
virtual bool | deleteColumn (const ColumnRef &column) |
virtual ColumnRef | insertColumn (const ColumnRef &base) |
virtual ColumnRef | insertColumn (const ColumnRef &base, const ColumnInfo &info)=0 |
virtual bool | modifyColumn (const ColumnRef &base, const ColumnInfo &info)=0 |
virtual ColumnRef | moveColumn (const ColumnRef &src, const ColumnRef &base) |
virtual bool | deleteRow (const RowRef &src) |
virtual bool | deleteRows (const RowRef &first, const RowRef &last) |
virtual bool | deleteData (int offset=0) |
virtual bool | hasDimension () const |
virtual bool | forceWidth (int width) |
virtual bool | forceHeight (int height) |
virtual RowRef | insertRow (const RowRef &base) |
virtual RowRef | moveRow (const RowRef &src, const RowRef &base) |
virtual bool | copyData (const DataSheet &src) |
virtual bool | canWrite () |
virtual bool | canResize () |
virtual bool | hasExternalColumnNames () const |
virtual bool | resize (int w, int h) |
virtual Poly< SheetRow > | insertRow () |
virtual Poly< SheetRow > | insertRowOrdered (const RowRef &base) |
virtual bool | applyRowCache (const RowCache &cache, int row, SheetCell *result) |
virtual bool | applySchema (const SheetSchema &ss) |
virtual bool | addedHeader () |
virtual std::string | getDescription () const |
virtual std::vector< std::string > | getNestedDescription () const |
virtual std::string | desc () const |
virtual std::string | getHash (bool cache=false) const |
virtual std::string | getRawHash () const |
virtual DataSheet & | tail () |
virtual const DataSheet & | tail_const () const |
virtual const DataSheet & | dataTail () const |
virtual bool | isSequential () const |
virtual DataSheet * | getNestedSheet (int x, int y) |
virtual Poly< Appearance > | getCellAppearance (int x, int y) |
virtual Poly< Appearance > | getRowAppearance (int y) |
virtual Poly< Appearance > | getColAppearance (int x) |
virtual bool | hasSheetName () const |
virtual bool | hasRowOffset () const |
virtual bool | setPool (Pool *pool) |
virtual Pool * | getPool () const |
virtual void | setMeta (SheetSchema *hint) |
virtual SheetSchema * | getMeta () const |
virtual bool | beginTransaction () |
virtual bool | rollbackTransaction () |
virtual bool | endTransaction () |
virtual void * | getDatabase () const |
virtual coopy::cmp::Compare * | getComparisonMethod () |
int | addReference () |
int | removeReference () |
int | getReferenceCount () |
Static Public Member Functions | |
static std::string | encodeCell (const SheetCell &str, const SheetStyle &style) |
Encode a cell value as text using a specified style. |
An abstract table.
Definition at line 53 of file DataSheet.h.
coopy::store::DataSheet::DataSheet | ( | ) | [inline] |
Definition at line 55 of file DataSheet.h.
DataSheet::~DataSheet | ( | ) | [virtual] |
Definition at line 8 of file DataSheet.cpp.
virtual bool coopy::store::DataSheet::addedHeader | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 285 of file DataSheet.h.
References coopy::store::SheetSchema::addedHeader(), and getSchema().
Referenced by coopy::store::PolySheet::addedHeader().
int coopy::store::RefCount::addReference | ( | ) | [inline, inherited] |
Definition at line 30 of file RefCount.h.
Referenced by coopy::store::PolyBook::attach(), coopy::fold::FoldedCell::FoldedCell(), coopy::fold::FoldedCell::getOrCreateSheet(), coopy::store::PolyBook::operator=(), coopy::store::PolyValue::operator=(), coopy::store::PolySheet::operator=(), coopy::fold::FoldedCell::operator=(), coopy::store::PolyBook::PolyBook(), coopy::store::PolySheet::PolySheet(), coopy::store::PolyValue::PolyValue(), coopy::store::PolySheet::setSchema(), and coopy::store::PolyBook::take().
Reimplemented in coopy::store::PolySheet, coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 156 of file DataSheet.cpp.
References coopy::store::RowCache::cells, coopy::store::RowCache::flags, height(), insertRow(), and setCell().
Referenced by coopy::store::PolySheet::applyRowCache(), and coopy::store::CacheSheetRow::flush().
virtual bool coopy::store::DataSheet::applySchema | ( | const SheetSchema & | ss | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 281 of file DataSheet.h.
Referenced by coopy::store::PolySheet::applySchema(), and coopy::store::socialcalc::SocialCalcTextBook::provideSheet().
virtual bool coopy::store::DataSheet::beginTransaction | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::remotesql::RemoteSqlSheet.
Definition at line 375 of file DataSheet.h.
Referenced by coopy::store::PolySheet::beginTransaction().
virtual bool coopy::store::DataSheet::canEscape | ( | ) | const [inline, virtual] |
Definition at line 139 of file DataSheet.h.
virtual bool coopy::store::DataSheet::canResize | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::CsvSheet, coopy::store::PolySheet, coopy::store::SparseFloatSheet, coopy::store::SparseIntSheet, and coopy::store::SparseByteSheet.
Definition at line 264 of file DataSheet.h.
Referenced by coopy::store::PolySheet::canResize(), and copyData().
virtual bool coopy::store::DataSheet::canWrite | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheet, coopy::store::PolySheet, and coopy::store::mdb::JackSheet.
Definition at line 262 of file DataSheet.h.
Referenced by coopy::store::PolySheet::canWrite(), and copyData().
virtual std::string coopy::store::DataSheet::cellString | ( | int | x, |
int | y, | ||
bool & | escaped | ||
) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheet, coopy::store::CsvSheet, coopy::fold::FoldedSheet, coopy::store::PolySheet, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 90 of file DataSheet.h.
References cellString().
virtual std::string coopy::store::DataSheet::cellString | ( | int | x, |
int | y | ||
) | const [pure virtual] |
Implemented in coopy::store::mdb::AccessSheet, coopy::store::CsvSheet, coopy::store::FloatSheet, coopy::fold::FoldedSheet, coopy::store::IntSheet, coopy::store::PolySheet, coopy::store::SparseStringSheet, coopy::store::SparseFloatSheet, coopy::store::SparseIntSheet, coopy::store::SparseByteSheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Referenced by coopy::cmp::RowManOf< FMultiMap >::apply(), coopy::cmp::MeasureMan::cell(), coopy::cmp::DataColumn::cell(), coopy::store::PolySheet::cellString(), cellString(), cellSummary(), coopy::cmp::DataStat::evaluate2(), coopy::cmp::ColMan::measure(), CsvRender::renderHtml(), write(), and writePart().
virtual bool coopy::store::DataSheet::cellString | ( | int | x, |
int | y, | ||
const std::string & | str | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified string value
Reimplemented in coopy::store::CsvSheet, coopy::fold::FoldedSheet, coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 111 of file DataSheet.h.
virtual bool coopy::store::DataSheet::cellString | ( | int | x, |
int | y, | ||
const std::string & | str, | ||
bool | escaped | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified string value, or to NULL if "escaped" is set.
Reimplemented in coopy::store::CsvSheet, coopy::fold::FoldedSheet, coopy::store::PolySheet, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 121 of file DataSheet.h.
References cellString().
virtual bool coopy::store::DataSheet::cellSummary | ( | int | x, |
int | y, | ||
const SheetCell & | c | ||
) | [inline, virtual] |
sets the contents of cell in column x, row y to a specified value.
Reimplemented in coopy::fold::FoldedSheet, coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 130 of file DataSheet.h.
References cellString(), coopy::store::SheetCell::escaped, and coopy::store::SheetCell::text.
virtual SheetCell coopy::store::DataSheet::cellSummary | ( | int | x, |
int | y | ||
) | const [inline, virtual] |
Reimplemented in coopy::fold::FoldedSheet, coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 100 of file DataSheet.h.
References cellString(), coopy::store::SheetCell::escaped, and coopy::store::SheetCell::text.
Referenced by coopy::store::PolySheet::cellSummary(), checkAllowed(), coopy::store::CsvSheet::copy(), encode(), encodeKey(), coopy::cmp::DataStat::evaluate2(), coopy::store::OrderedSheetRow::getCell(), getCell(), getHash(), coopy::store::OrderedSheetRow::invent(), coopy::cmp::Merger::mergeRow(), coopy::store::OrderedSheetRow::setCell(), setCell(), and writePart().
virtual bool coopy::store::DataSheet::clearCache | ( | ) | [inline, virtual] |
Remove any cached values if used, e.g.
in proxies for remote tables.
Reimplemented in coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 191 of file DataSheet.h.
bool DataSheet::copyData | ( | const DataSheet & | src | ) | [virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 134 of file DataSheet.cpp.
References canResize(), canWrite(), getCell(), height(), resize(), setCell(), and width().
Referenced by coopy::store::PolySheet::copyData().
virtual const DataSheet& coopy::store::DataSheet::dataTail | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 329 of file DataSheet.h.
Referenced by coopy::store::PolySheet::dataTail(), and coopy::cmp::Patcher::getSheet().
virtual bool coopy::store::DataSheet::deleteColumn | ( | const ColumnRef & | column | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 197 of file DataSheet.h.
Referenced by coopy::store::PolySheet::deleteColumn().
virtual bool coopy::store::DataSheet::deleteData | ( | int | offset = 0 | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 230 of file DataSheet.h.
References deleteRow(), and height().
Referenced by coopy::store::sqlite::SqliteSheet::deleteData(), and coopy::store::PolySheet::deleteData().
virtual bool coopy::store::DataSheet::deleteRow | ( | const RowRef & | src | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 217 of file DataSheet.h.
Referenced by deleteData(), coopy::store::PolySheet::deleteRow(), deleteRows(), and coopy::store::OrderedSheetRow::undo().
virtual bool coopy::store::DataSheet::deleteRows | ( | const RowRef & | first, |
const RowRef & | last | ||
) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, and coopy::store::socialcalc::SocialCalcSheet.
Definition at line 221 of file DataSheet.h.
References deleteRow(), and coopy::store::RowRef::getIndex().
Referenced by coopy::store::PolySheet::deleteRows().
virtual std::string coopy::store::DataSheet::desc | ( | ) | const [inline, virtual] |
Definition at line 303 of file DataSheet.h.
References getNestedDescription().
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), and getHash().
std::string DataSheet::encode | ( | const SheetStyle & | style | ) | const |
Render table as serialized text, using the specified style.
Reimplemented in coopy::store::PolySheet.
Definition at line 33 of file DataSheet.cpp.
References cellSummary(), encodeCell(), coopy::store::SheetStyle::getDelimiter(), coopy::store::SheetStyle::getEol(), getSchema(), coopy::store::SheetSchema::headerHeight(), height(), NULL, coopy::store::SheetStyle::shouldEolAtEof(), coopy::store::SheetStyle::shouldMarkHeader(), and width().
Referenced by blob_show_csv(), coopy::fold::FoldedSheet::cellSummary(), coopy::store::PolySheet::encode(), main(), toString(), and write().
std::string DataSheet::encodeCell | ( | const SheetCell & | str, |
const SheetStyle & | style | ||
) | [static] |
Encode a cell value as text using a specified style.
Definition at line 70 of file DataSheet.cpp.
References coopy::store::SheetCell::escaped, coopy::store::SheetStyle::getDelimiter(), coopy::store::SheetStyle::getNullToken(), coopy::store::SheetStyle::haveNullToken(), coopy::store::SheetStyle::quoteCollidingText(), coopy::store::SheetStyle::shouldTrimEnd(), and coopy::store::SheetCell::text.
Referenced by encode().
virtual bool coopy::store::DataSheet::endTransaction | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::remotesql::RemoteSqlSheet.
Definition at line 383 of file DataSheet.h.
Referenced by coopy::store::PolySheet::endTransaction().
virtual bool coopy::store::DataSheet::forceHeight | ( | int | height | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 246 of file DataSheet.h.
Referenced by coopy::store::PolySheet::forceHeight().
virtual bool coopy::store::DataSheet::forceWidth | ( | int | width | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, and coopy::store::socialcalc::SocialCalcSheet.
Definition at line 242 of file DataSheet.h.
Referenced by coopy::store::PolySheet::forceWidth().
virtual SheetCell coopy::store::DataSheet::getCell | ( | int | x, |
int | y | ||
) | const [inline, virtual] |
Definition at line 148 of file DataSheet.h.
References cellSummary().
Referenced by copyData().
virtual Poly<Appearance> coopy::store::DataSheet::getCellAppearance | ( | int | x, |
int | y | ||
) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 342 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getCellAppearance().
virtual Poly<Appearance> coopy::store::DataSheet::getColAppearance | ( | int | x | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 350 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getColAppearance().
virtual coopy::cmp::Compare* coopy::store::DataSheet::getComparisonMethod | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 392 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getComparisonMethod().
virtual void* coopy::store::DataSheet::getDatabase | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 388 of file DataSheet.h.
Referenced by coopy::cmp::SheetCompare::compare(), and coopy::store::PolySheet::getDatabase().
virtual std::string coopy::store::DataSheet::getDescription | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::CsvSheet, coopy::store::PolySheet, coopy::store::SparseSheet< T >, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::sqlite::SqliteSheet, coopy::store::SparseSheet< std::string >, coopy::store::SparseSheet< float >, coopy::store::SparseSheet< int >, coopy::store::SparseSheet< unsigned char >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 292 of file DataSheet.h.
Referenced by getNestedDescription().
std::string DataSheet::getHash | ( | bool | cache = false | ) | const [virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 197 of file DataSheet.cpp.
References coopy::store::Sha1Generator::add(), cellSummary(), dbg_printf, desc(), coopy::store::SheetCell::escaped, coopy::store::Sha1Generator::finish(), getRawHash(), height(), coopy::store::SheetCell::text, and width().
Referenced by coopy::cmp::SheetCompare::compare(), and coopy::store::PolySheet::getHash().
SheetSchema * DataSheet::getMeta | ( | ) | const [virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 12 of file DataSheet.cpp.
Referenced by coopy::store::PolySheet::getMeta(), and coopy::cmp::Patcher::metaHint().
virtual std::vector<std::string> coopy::store::DataSheet::getNestedDescription | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 296 of file DataSheet.h.
References getDescription().
Referenced by desc(), and coopy::store::PolySheet::getNestedDescription().
virtual DataSheet* coopy::store::DataSheet::getNestedSheet | ( | int | x, |
int | y | ||
) | [inline, virtual] |
Reimplemented in coopy::fold::FoldedSheet, and coopy::store::PolySheet.
Definition at line 338 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getNestedSheet(), and writePart().
virtual Pool* coopy::store::DataSheet::getPool | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 367 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getPool().
virtual std::string coopy::store::DataSheet::getRawHash | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 317 of file DataSheet.h.
Referenced by getHash(), and coopy::store::PolySheet::getRawHash().
int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
virtual Poly<Appearance> coopy::store::DataSheet::getRowAppearance | ( | int | y | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 346 of file DataSheet.h.
Referenced by coopy::store::PolySheet::getRowAppearance().
virtual SheetSchema* coopy::store::DataSheet::getSchema | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheet, coopy::store::CsvSheet, coopy::store::PolySheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 193 of file DataSheet.h.
Referenced by addedHeader(), coopy::cmp::Patcher::addPoolsFromFlags(), encode(), coopy::store::PolySheet::getSchema(), CsvRender::renderHtml(), coopy::store::PolySheet::setRowOffset(), and writePart().
virtual bool coopy::store::DataSheet::hasDimension | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, and coopy::store::socialcalc::SocialCalcSheet.
Definition at line 238 of file DataSheet.h.
Referenced by coopy::store::PolySheet::hasDimension().
virtual bool coopy::store::DataSheet::hasExternalColumnNames | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheet, coopy::fold::FoldedSheet, coopy::store::PolySheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 266 of file DataSheet.h.
Referenced by coopy::cmp::SheetCompare::compare(), coopy::store::PolySheet::hasExternalColumnNames(), and coopy::store::PolySheet::setRowOffset().
virtual bool coopy::store::DataSheet::hasRowOffset | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 358 of file DataSheet.h.
Referenced by coopy::store::PolySheet::hasRowOffset(), and coopy::cmp::Patcher::metaHint().
virtual bool coopy::store::DataSheet::hasSheetName | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::CsvSheet, and coopy::store::PolySheet.
Definition at line 354 of file DataSheet.h.
Referenced by coopy::store::PolySheet::hasSheetName().
virtual int coopy::store::DataSheet::height | ( | ) | const [pure virtual] |
Implemented in coopy::store::mdb::AccessSheet, coopy::store::PolySheet, coopy::store::SparseSheet< T >, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::SparseSheet< std::string >, coopy::store::SparseSheet< float >, coopy::store::SparseSheet< int >, coopy::store::SparseSheet< unsigned char >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Referenced by coopy::cmp::RowManOf< FMultiMap >::apply(), applyRowCache(), coopy::cmp::MeasureMan::cellExists(), coopy::cmp::MeasureMan::cellLength(), checkAllowed(), coopy::store::CsvSheet::copy(), copyData(), coopy::store::NameSniffer::dataHeight(), deleteData(), encode(), coopy::cmp::DataStat::evaluate2(), getHash(), coopy::store::PolySheet::height(), coopy::store::OrderedSheetRow::invent(), coopy::cmp::ColMan::measure(), coopy::cmp::Merger::merge(), coopy::cmp::Merger::mergeRow(), coopy::cmp::Patcher::metaHint(), CsvRender::renderHtml(), coopy::cmp::RowManOf< FMultiMap >::setup(), write(), and writePart().
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 202 of file DataSheet.h.
Referenced by coopy::store::PolySheet::insertColumn().
virtual ColumnRef coopy::store::DataSheet::insertColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [pure virtual] |
Implemented in coopy::store::mdb::AccessSheet, coopy::store::PolySheet, coopy::store::SparseSheet< T >, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::SparseSheet< std::string >, coopy::store::SparseSheet< float >, coopy::store::SparseSheet< int >, coopy::store::SparseSheet< unsigned char >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Reimplemented in coopy::store::PolySheet.
Definition at line 180 of file DataSheet.cpp.
References COOPY_ASSERT, insertRowOrdered(), and isSequential().
Referenced by applyRowCache(), and insertRowOrdered().
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 251 of file DataSheet.h.
Referenced by coopy::store::PolySheet::insertRow().
Reimplemented in coopy::store::PolySheet.
Definition at line 190 of file DataSheet.cpp.
References COOPY_ASSERT, coopy::store::RowRef::getIndex(), and insertRow().
Referenced by insertRow(), and coopy::store::PolySheet::insertRowOrdered().
virtual bool coopy::store::DataSheet::isSequential | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::remotesql::RemoteSqlSheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 334 of file DataSheet.h.
Referenced by coopy::cmp::SheetCompare::compare(), insertRow(), and coopy::store::PolySheet::isSequential().
virtual bool coopy::store::DataSheet::modifyColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [pure virtual] |
Implemented in coopy::store::mdb::AccessSheet, coopy::store::PolySheet, coopy::store::SparseSheet< T >, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::SparseSheet< std::string >, coopy::store::SparseSheet< float >, coopy::store::SparseSheet< int >, coopy::store::SparseSheet< unsigned char >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Referenced by coopy::store::PolySheet::modifyColumn().
virtual ColumnRef coopy::store::DataSheet::moveColumn | ( | const ColumnRef & | src, |
const ColumnRef & | base | ||
) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 213 of file DataSheet.h.
Referenced by coopy::store::PolySheet::moveColumn().
virtual RowRef coopy::store::DataSheet::moveRow | ( | const RowRef & | src, |
const RowRef & | base | ||
) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Definition at line 256 of file DataSheet.h.
Referenced by coopy::store::PolySheet::moveRow().
int coopy::store::RefCount::removeReference | ( | ) | [inline, inherited] |
Definition at line 35 of file RefCount.h.
Referenced by coopy::store::PolyBook::clear(), coopy::store::PolyValue::clear(), coopy::store::PolySheet::clearSchema(), coopy::store::PolySheet::clearSheet(), and coopy::store::PolyBook::give().
virtual bool coopy::store::DataSheet::resize | ( | int | w, |
int | h | ||
) | [inline, virtual] |
Reimplemented in coopy::store::CsvSheet, coopy::store::PolySheet, coopy::store::SparseFloatSheet, coopy::store::SparseIntSheet, coopy::store::SparseByteSheet, coopy::store::TypedSheet< T >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, and coopy::store::TypedSheet< std::pair< T, bool > >.
Definition at line 270 of file DataSheet.h.
Referenced by copyData(), and coopy::store::PolySheet::resize().
virtual bool coopy::store::DataSheet::rollbackTransaction | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet, and coopy::store::remotesql::RemoteSqlSheet.
Definition at line 379 of file DataSheet.h.
Referenced by coopy::store::PolySheet::rollbackTransaction().
virtual bool coopy::store::DataSheet::setCell | ( | int | x, |
int | y, | ||
const SheetCell & | c | ||
) | [inline, virtual] |
set contents of cell in column x, row y
Definition at line 157 of file DataSheet.h.
References cellSummary().
Referenced by applyRowCache(), and copyData().
void DataSheet::setMeta | ( | SheetSchema * | hint | ) | [virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 18 of file DataSheet.cpp.
References NULL.
Referenced by coopy::store::PolySheet::setMeta(), and ~DataSheet().
virtual bool coopy::store::DataSheet::setPool | ( | Pool * | pool | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 362 of file DataSheet.h.
Referenced by coopy::store::TextBook::applyPool(), and coopy::store::PolySheet::setPool().
virtual DataSheet& coopy::store::DataSheet::tail | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 321 of file DataSheet.h.
Referenced by coopy::store::sqlite::SqliteSheet::compare(), and coopy::store::PolySheet::tail().
virtual const DataSheet& coopy::store::DataSheet::tail_const | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::PolySheet.
Definition at line 325 of file DataSheet.h.
Referenced by coopy::store::PolySheet::tail_const().
std::string coopy::store::DataSheet::toString | ( | ) | const [inline] |
Render table as serialized text, using a default style.
Definition at line 173 of file DataSheet.h.
References encode().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), main(), coopy::store::TextBook::toString(), and coopy::store::socialcalc::SocialCalcTextBook::write().
virtual int coopy::store::DataSheet::width | ( | ) | const [pure virtual] |
Implemented in coopy::store::mdb::AccessSheet, coopy::store::PolySheet, coopy::store::SparseSheet< T >, coopy::store::TypedSheet< T >, coopy::store::EscapedTypedSheet< T >, coopy::store::gnumeric::GnumericSheet, coopy::store::mdb::JackSheet, coopy::store::remotesql::RemoteSqlSheet, coopy::store::socialcalc::SocialCalcSheet, coopy::store::sqlite::SqliteSheet, coopy::store::SparseSheet< std::string >, coopy::store::SparseSheet< float >, coopy::store::SparseSheet< int >, coopy::store::SparseSheet< unsigned char >, coopy::store::TypedSheet< FoldedCell >, coopy::store::TypedSheet< float >, coopy::store::TypedSheet< int >, coopy::store::TypedSheet< std::pair< std::string, bool > >, coopy::store::TypedSheet< std::pair< T, bool > >, and coopy::store::EscapedTypedSheet< std::string >.
Referenced by coopy::cmp::Patcher::addPoolsFromSchema(), coopy::cmp::RowManOf< FMultiMap >::apply(), coopy::cmp::MeasureMan::cellExists(), coopy::cmp::MeasureMan::cellLength(), coopy::store::CsvSheet::copy(), copyData(), coopy::store::NameSniffer::dataWidth(), encode(), coopy::cmp::DataStat::evaluate2(), getHash(), coopy::cmp::ColMan::measure(), coopy::cmp::Merger::merge(), CsvRender::renderHtml(), coopy::cmp::ColMan::setup(), coopy::store::PolySheet::width(), write(), and writePart().