COOPY » Guide
version 0.6.5
|
#include <CsvSheet.h>
Public Types | |
typedef std::pair< std::string, bool > | pairCellType |
typedef std::string | cellType |
Public Member Functions | |
CsvSheet () | |
virtual SheetSchema * | getSchema () const |
void | setSchema (Poly< SheetSchema > pSchema) |
const SheetStyle & | getStyle () |
void | setStyle (const SheetStyle &style) |
bool | setStrict (bool strict) |
bool | isStrict () |
bool | removeRow (int index) |
void | addField (const char *s, bool escaped) |
void | addField (const coopy::store::SheetCell &c) |
void | addField (const char *s, int len, bool escaped) |
void | addRecord () |
void | addRow (CsvSheet &alt, int row) |
void | clear () |
bool | isValid () const |
virtual std::string | cellString (int x, int y) const |
virtual std::string | cellString (int x, int y, bool &escaped) 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. | |
const CsvSheet & | copy (const CsvSheet &alt) |
const CsvSheet & | copy (const DataSheet &alt) |
virtual bool | canResize () |
virtual bool | resize (int w, int h) |
bool | setWidth (int w) |
virtual std::string | getDescription () const |
virtual bool | hasSheetName () const |
void | setSheetName (const char *name) |
void | resize (int w, int h, const std::string &zero) |
int | width () const |
int | height () const |
std::string & | cell (int x, int y) |
const std::string & | cell (int x, int y) const |
std::pair< std::string, bool > & | pcell (int x, int y) |
const std::pair< std::string, bool > & | pcell (int x, int y) const |
virtual bool | deleteColumn (const ColumnRef &column) |
virtual ColumnRef | insertColumn (const ColumnRef &base) |
virtual ColumnRef | insertColumn (const ColumnRef &base, const ColumnInfo &info) |
virtual bool | modifyColumn (const ColumnRef &base, const ColumnInfo &info) |
virtual ColumnRef | moveColumn (const ColumnRef &src, const ColumnRef &base) |
virtual bool | deleteRow (const RowRef &src) |
virtual RowRef | insertRow (const RowRef &base) |
virtual Poly< SheetRow > | insertRow () |
virtual RowRef | moveRow (const RowRef &src, const RowRef &base) |
virtual bool | applySchema (const SheetSchema &ss) |
virtual SheetCell | cellSummary (int x, int y) const |
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 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 bool | copyData (const DataSheet &src) |
virtual bool | canWrite () |
virtual bool | hasExternalColumnNames () const |
virtual Poly< SheetRow > | insertRowOrdered (const RowRef &base) |
virtual bool | applyRowCache (const RowCache &cache, int row, SheetCell *result) |
virtual bool | addedHeader () |
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 | 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. | |
Data Fields | |
TypedSheet< std::pair < std::string, bool > > | s |
Definition at line 16 of file CsvSheet.h.
typedef std::string coopy::store::EscapedTypedSheet< std::string >::cellType [inherited] |
Definition at line 234 of file TypedSheet.h.
typedef std::pair<std::string ,bool> coopy::store::EscapedTypedSheet< std::string >::pairCellType [inherited] |
Definition at line 233 of file TypedSheet.h.
coopy::store::CsvSheet::CsvSheet | ( | ) | [inline] |
Definition at line 29 of file CsvSheet.h.
virtual bool coopy::store::DataSheet::addedHeader | ( | ) | [inline, virtual, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 285 of file DataSheet.h.
References coopy::store::SheetSchema::addedHeader(), and coopy::store::DataSheet::getSchema().
Referenced by coopy::store::PolySheet::addedHeader().
void coopy::store::CsvSheet::addField | ( | const coopy::store::SheetCell & | c | ) | [inline] |
Definition at line 91 of file CsvSheet.h.
References addField(), coopy::store::SheetCell::escaped, and coopy::store::SheetCell::text.
void coopy::store::CsvSheet::addField | ( | const char * | s, |
int | len, | ||
bool | escaped | ||
) | [inline] |
Definition at line 95 of file CsvSheet.h.
References addField().
void CsvSheet::addField | ( | const char * | s, |
bool | escaped | ||
) |
Definition at line 10 of file CsvSheet.cpp.
Referenced by addField(), addRow(), coopy::app::Diff::apply(), copy(), generateNumbers(), main(), resize(), and coopy::store::CsvTextBook::write().
void CsvSheet::addRecord | ( | ) |
Definition at line 34 of file CsvSheet.cpp.
References coopy::store::TypedSheet< T >::arr, coopy::store::TypedSheet< T >::h, coopy::store::EscapedTypedSheet< std::string >::s, and coopy::store::TypedSheet< T >::w.
Referenced by addRow(), coopy::app::Diff::apply(), copy(), generateNumbers(), main(), resize(), and coopy::store::CsvTextBook::write().
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().
void coopy::store::CsvSheet::addRow | ( | CsvSheet & | alt, |
int | row | ||
) | [inline] |
Definition at line 103 of file CsvSheet.h.
References addField(), addRecord(), coopy::store::EscapedTypedSheet< T >::pcell(), and coopy::store::EscapedTypedSheet< T >::width().
bool DataSheet::applyRowCache | ( | const RowCache & | cache, |
int | row, | ||
SheetCell * | result | ||
) | [virtual, inherited] |
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, coopy::store::DataSheet::height(), coopy::store::DataSheet::insertRow(), and coopy::store::DataSheet::setCell().
Referenced by coopy::store::PolySheet::applyRowCache(), and coopy::store::CacheSheetRow::flush().
virtual bool coopy::store::EscapedTypedSheet< std::string >::applySchema | ( | const SheetSchema & | ss | ) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 334 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::applySchema(), and coopy::store::EscapedTypedSheet< T >::s.
virtual bool coopy::store::DataSheet::beginTransaction | ( | ) | [inline, virtual, inherited] |
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, inherited] |
Definition at line 139 of file DataSheet.h.
virtual bool coopy::store::CsvSheet::canResize | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 180 of file CsvSheet.h.
virtual bool coopy::store::DataSheet::canWrite | ( | ) | [inline, virtual, inherited] |
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 coopy::store::DataSheet::copyData().
std::string & coopy::store::EscapedTypedSheet< std::string >::cell | ( | int | x, |
int | y | ||
) | [inline, inherited] |
Definition at line 262 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::cell(), and coopy::store::EscapedTypedSheet< T >::s.
Referenced by cellString(), and resize().
const std::string & coopy::store::EscapedTypedSheet< std::string >::cell | ( | int | x, |
int | y | ||
) | const [inline, inherited] |
Definition at line 266 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::cell(), and coopy::store::EscapedTypedSheet< T >::s.
virtual std::string coopy::store::CsvSheet::cellString | ( | int | x, |
int | y, | ||
bool & | escaped | ||
) | const [inline, virtual] |
Implements coopy::store::EscapedTypedSheet< std::string >.
Definition at line 131 of file CsvSheet.h.
References coopy::store::TypedSheet< T >::arr, coopy::store::EscapedTypedSheet< std::string >::pcell(), and coopy::store::EscapedTypedSheet< std::string >::s.
virtual bool coopy::store::CsvSheet::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 from coopy::store::DataSheet.
Definition at line 149 of file CsvSheet.h.
References coopy::store::EscapedTypedSheet< std::string >::cell().
virtual bool coopy::store::CsvSheet::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.
Implements coopy::store::EscapedTypedSheet< std::string >.
Definition at line 154 of file CsvSheet.h.
References coopy::store::EscapedTypedSheet< std::string >::pcell().
virtual std::string coopy::store::CsvSheet::cellString | ( | int | x, |
int | y | ||
) | const [inline, virtual] |
Implements coopy::store::EscapedTypedSheet< std::string >.
Definition at line 123 of file CsvSheet.h.
References coopy::store::TypedSheet< T >::arr, coopy::store::EscapedTypedSheet< std::string >::cell(), and coopy::store::EscapedTypedSheet< std::string >::s.
Referenced by generateNumbers(), main(), and write().
virtual SheetCell coopy::store::DataSheet::cellSummary | ( | int | x, |
int | y | ||
) | const [inline, virtual, inherited] |
Reimplemented in coopy::fold::FoldedSheet, coopy::store::PolySheet, and coopy::store::gnumeric::GnumericSheet.
Definition at line 100 of file DataSheet.h.
References coopy::store::DataSheet::cellString(), coopy::store::SheetCell::escaped, and coopy::store::SheetCell::text.
Referenced by coopy::store::PolySheet::cellSummary(), checkAllowed(), copy(), coopy::store::DataSheet::encode(), encodeKey(), coopy::cmp::DataStat::evaluate2(), coopy::store::OrderedSheetRow::getCell(), coopy::store::DataSheet::getCell(), coopy::store::DataSheet::getHash(), coopy::store::OrderedSheetRow::invent(), coopy::cmp::Merger::mergeRow(), coopy::store::OrderedSheetRow::setCell(), coopy::store::DataSheet::setCell(), and writePart().
virtual bool coopy::store::DataSheet::cellSummary | ( | int | x, |
int | y, | ||
const SheetCell & | c | ||
) | [inline, virtual, inherited] |
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 coopy::store::DataSheet::cellString(), coopy::store::SheetCell::escaped, and coopy::store::SheetCell::text.
void coopy::store::CsvSheet::clear | ( | ) | [inline] |
Reimplemented from coopy::store::EscapedTypedSheet< std::string >.
Definition at line 111 of file CsvSheet.h.
References coopy::store::TypedSheet< T >::arr, coopy::store::TypedSheet< T >::h, coopy::store::EscapedTypedSheet< std::string >::s, and coopy::store::TypedSheet< T >::w.
virtual bool coopy::store::DataSheet::clearCache | ( | ) | [inline, virtual, inherited] |
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.
Definition at line 162 of file CsvSheet.h.
References coopy::store::TypedSheet< T >::arr, coopy::store::TypedSheet< T >::h, coopy::store::EscapedTypedSheet< T >::s, coopy::store::EscapedTypedSheet< std::string >::s, and coopy::store::TypedSheet< T >::w.
Referenced by main().
Definition at line 169 of file CsvSheet.h.
References addField(), addRecord(), coopy::store::DataSheet::cellSummary(), clear(), coopy::store::DataSheet::height(), and coopy::store::DataSheet::width().
bool DataSheet::copyData | ( | const DataSheet & | src | ) | [virtual, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 134 of file DataSheet.cpp.
References coopy::store::DataSheet::canResize(), coopy::store::DataSheet::canWrite(), coopy::store::DataSheet::getCell(), coopy::store::DataSheet::height(), coopy::store::DataSheet::resize(), coopy::store::DataSheet::setCell(), and coopy::store::DataSheet::width().
Referenced by coopy::store::PolySheet::copyData().
virtual const DataSheet& coopy::store::DataSheet::dataTail | ( | ) | const [inline, virtual, inherited] |
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::EscapedTypedSheet< std::string >::deleteColumn | ( | const ColumnRef & | column | ) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 299 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::deleteColumn(), and coopy::store::EscapedTypedSheet< T >::s.
virtual bool coopy::store::DataSheet::deleteData | ( | int | offset = 0 | ) | [inline, virtual, inherited] |
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 coopy::store::DataSheet::deleteRow(), and coopy::store::DataSheet::height().
Referenced by coopy::store::sqlite::SqliteSheet::deleteData(), and coopy::store::PolySheet::deleteData().
virtual bool coopy::store::EscapedTypedSheet< std::string >::deleteRow | ( | const RowRef & | src | ) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 321 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::deleteRow(), and coopy::store::EscapedTypedSheet< T >::s.
virtual bool coopy::store::DataSheet::deleteRows | ( | const RowRef & | first, |
const RowRef & | last | ||
) | [inline, virtual, inherited] |
Reimplemented in coopy::store::PolySheet, coopy::store::gnumeric::GnumericSheet, and coopy::store::socialcalc::SocialCalcSheet.
Definition at line 221 of file DataSheet.h.
References coopy::store::DataSheet::deleteRow(), and coopy::store::RowRef::getIndex().
Referenced by coopy::store::PolySheet::deleteRows().
virtual std::string coopy::store::DataSheet::desc | ( | ) | const [inline, virtual, inherited] |
Definition at line 303 of file DataSheet.h.
References coopy::store::DataSheet::getNestedDescription().
Referenced by coopy::cmp::SheetPatcher::changeRow(), coopy::store::TextBook::copy(), and coopy::store::DataSheet::getHash().
std::string DataSheet::encode | ( | const SheetStyle & | style | ) | const [inherited] |
Render table as serialized text, using the specified style.
Reimplemented in coopy::store::PolySheet.
Definition at line 33 of file DataSheet.cpp.
References coopy::store::DataSheet::cellSummary(), coopy::store::DataSheet::encodeCell(), coopy::store::SheetStyle::getDelimiter(), coopy::store::SheetStyle::getEol(), coopy::store::DataSheet::getSchema(), coopy::store::SheetSchema::headerHeight(), coopy::store::DataSheet::height(), NULL, coopy::store::SheetStyle::shouldEolAtEof(), coopy::store::SheetStyle::shouldMarkHeader(), and coopy::store::DataSheet::width().
Referenced by blob_show_csv(), coopy::fold::FoldedSheet::cellSummary(), coopy::store::PolySheet::encode(), main(), coopy::store::DataSheet::toString(), and write().
std::string DataSheet::encodeCell | ( | const SheetCell & | str, |
const SheetStyle & | style | ||
) | [static, inherited] |
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 coopy::store::DataSheet::encode().
virtual bool coopy::store::DataSheet::endTransaction | ( | ) | [inline, virtual, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
Definition at line 148 of file DataSheet.h.
References coopy::store::DataSheet::cellSummary().
Referenced by coopy::store::DataSheet::copyData().
virtual Poly<Appearance> coopy::store::DataSheet::getCellAppearance | ( | int | x, |
int | y | ||
) | [inline, virtual, inherited] |
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, inherited] |
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, inherited] |
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, inherited] |
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::CsvSheet::getDescription | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::EscapedTypedSheet< std::string >.
Definition at line 201 of file CsvSheet.h.
std::string DataSheet::getHash | ( | bool | cache = false | ) | const [virtual, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 197 of file DataSheet.cpp.
References coopy::store::Sha1Generator::add(), coopy::store::DataSheet::cellSummary(), dbg_printf, coopy::store::DataSheet::desc(), coopy::store::SheetCell::escaped, coopy::store::Sha1Generator::finish(), coopy::store::DataSheet::getRawHash(), coopy::store::DataSheet::height(), coopy::store::SheetCell::text, and coopy::store::DataSheet::width().
Referenced by coopy::cmp::SheetCompare::compare(), and coopy::store::PolySheet::getHash().
SheetSchema * DataSheet::getMeta | ( | ) | const [virtual, inherited] |
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, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 296 of file DataSheet.h.
References coopy::store::DataSheet::getDescription().
Referenced by coopy::store::DataSheet::desc(), and coopy::store::PolySheet::getNestedDescription().
virtual DataSheet* coopy::store::DataSheet::getNestedSheet | ( | int | x, |
int | y | ||
) | [inline, virtual, inherited] |
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, inherited] |
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, inherited] |
Reimplemented in coopy::store::PolySheet, and coopy::store::sqlite::SqliteSheet.
Definition at line 317 of file DataSheet.h.
Referenced by coopy::store::DataSheet::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, inherited] |
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::CsvSheet::getSchema | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 35 of file CsvSheet.h.
References coopy::store::Poly< T >::getContent().
const SheetStyle& coopy::store::CsvSheet::getStyle | ( | ) | [inline] |
Definition at line 43 of file CsvSheet.h.
virtual bool coopy::store::DataSheet::hasDimension | ( | ) | const [inline, virtual, inherited] |
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, inherited] |
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, inherited] |
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::CsvSheet::hasSheetName | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 205 of file CsvSheet.h.
int coopy::store::EscapedTypedSheet< std::string >::height | ( | ) | const [inline, virtual, inherited] |
Implements coopy::store::DataSheet.
Definition at line 258 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::height(), and coopy::store::EscapedTypedSheet< T >::s.
virtual ColumnRef coopy::store::EscapedTypedSheet< std::string >::insertColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [inline, virtual, inherited] |
Implements coopy::store::DataSheet.
Definition at line 307 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::insertColumn(), and coopy::store::EscapedTypedSheet< T >::s.
virtual ColumnRef coopy::store::EscapedTypedSheet< std::string >::insertColumn | ( | const ColumnRef & | base | ) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 303 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::insertColumn(), and coopy::store::EscapedTypedSheet< T >::s.
virtual RowRef coopy::store::EscapedTypedSheet< std::string >::insertRow | ( | const RowRef & | base | ) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 325 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::insertRow(), and coopy::store::EscapedTypedSheet< T >::s.
Reimplemented in coopy::store::PolySheet.
Definition at line 180 of file DataSheet.cpp.
References COOPY_ASSERT, coopy::store::DataSheet::insertRowOrdered(), and coopy::store::DataSheet::isSequential().
Referenced by coopy::store::DataSheet::applyRowCache(), and coopy::store::DataSheet::insertRowOrdered().
Reimplemented in coopy::store::PolySheet.
Definition at line 190 of file DataSheet.cpp.
References COOPY_ASSERT, coopy::store::RowRef::getIndex(), and coopy::store::DataSheet::insertRow().
Referenced by coopy::store::DataSheet::insertRow(), and coopy::store::PolySheet::insertRowOrdered().
virtual bool coopy::store::DataSheet::isSequential | ( | ) | const [inline, virtual, inherited] |
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(), coopy::store::DataSheet::insertRow(), and coopy::store::PolySheet::isSequential().
bool coopy::store::CsvSheet::isStrict | ( | ) | [inline] |
Definition at line 56 of file CsvSheet.h.
bool coopy::store::CsvSheet::isValid | ( | ) | const [inline] |
Definition at line 119 of file CsvSheet.h.
Referenced by blob_to_csv().
virtual bool coopy::store::EscapedTypedSheet< std::string >::modifyColumn | ( | const ColumnRef & | base, |
const ColumnInfo & | info | ||
) | [inline, virtual, inherited] |
Implements coopy::store::DataSheet.
Definition at line 312 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::modifyColumn(), and coopy::store::EscapedTypedSheet< T >::s.
virtual ColumnRef coopy::store::EscapedTypedSheet< std::string >::moveColumn | ( | const ColumnRef & | src, |
const ColumnRef & | base | ||
) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 317 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::moveColumn(), and coopy::store::EscapedTypedSheet< T >::s.
virtual RowRef coopy::store::EscapedTypedSheet< std::string >::moveRow | ( | const RowRef & | src, |
const RowRef & | base | ||
) | [inline, virtual, inherited] |
Reimplemented from coopy::store::DataSheet.
Definition at line 330 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::moveRow(), and coopy::store::EscapedTypedSheet< T >::s.
const std::pair<std::string ,bool>& coopy::store::EscapedTypedSheet< std::string >::pcell | ( | int | x, |
int | y | ||
) | const [inline, inherited] |
Definition at line 274 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::cell(), and coopy::store::EscapedTypedSheet< T >::s.
std::pair<std::string ,bool>& coopy::store::EscapedTypedSheet< std::string >::pcell | ( | int | x, |
int | y | ||
) | [inline, inherited] |
Definition at line 270 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::cell(), and coopy::store::EscapedTypedSheet< T >::s.
Referenced by cellString().
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().
bool coopy::store::CsvSheet::removeRow | ( | int | index | ) | [inline] |
Definition at line 61 of file CsvSheet.h.
References coopy::store::TypedSheet< T >::arr, coopy::store::TypedSheet< T >::h, and coopy::store::EscapedTypedSheet< std::string >::s.
Referenced by main().
virtual bool coopy::store::CsvSheet::resize | ( | int | w, |
int | h | ||
) | [inline, virtual] |
Reimplemented from coopy::store::DataSheet.
Definition at line 182 of file CsvSheet.h.
References addField(), addRecord(), coopy::store::EscapedTypedSheet< std::string >::cell(), clear(), coopy::store::TypedSheet< T >::h, coopy::store::EscapedTypedSheet< std::string >::s, and coopy::store::TypedSheet< T >::w.
Referenced by write().
void coopy::store::EscapedTypedSheet< std::string >::resize | ( | int | w, |
int | h, | ||
const std::string & | zero | ||
) | [inline, inherited] |
Definition at line 249 of file TypedSheet.h.
References coopy::store::TypedSheet< T >::resize(), and coopy::store::EscapedTypedSheet< T >::s.
virtual bool coopy::store::DataSheet::rollbackTransaction | ( | ) | [inline, virtual, inherited] |
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, inherited] |
set contents of cell in column x, row y
Definition at line 157 of file DataSheet.h.
References coopy::store::DataSheet::cellSummary().
Referenced by coopy::store::DataSheet::applyRowCache(), and coopy::store::DataSheet::copyData().
void DataSheet::setMeta | ( | SheetSchema * | hint | ) | [virtual, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 18 of file DataSheet.cpp.
References NULL.
Referenced by coopy::store::PolySheet::setMeta(), and coopy::store::DataSheet::~DataSheet().
virtual bool coopy::store::DataSheet::setPool | ( | Pool * | pool | ) | [inline, virtual, inherited] |
Reimplemented in coopy::store::PolySheet.
Definition at line 362 of file DataSheet.h.
Referenced by coopy::store::TextBook::applyPool(), and coopy::store::PolySheet::setPool().
void coopy::store::CsvSheet::setSchema | ( | Poly< SheetSchema > | pSchema | ) | [inline] |
Definition at line 39 of file CsvSheet.h.
Referenced by coopy::store::ShortTextBook::provideSheet().
void coopy::store::CsvSheet::setSheetName | ( | const char * | name | ) | [inline] |
Definition at line 209 of file CsvSheet.h.
Referenced by coopy::store::CsvTextBook::addSheet().
bool coopy::store::CsvSheet::setStrict | ( | bool | strict | ) | [inline] |
Definition at line 51 of file CsvSheet.h.
void coopy::store::CsvSheet::setStyle | ( | const SheetStyle & | style | ) | [inline] |
Definition at line 47 of file CsvSheet.h.
bool coopy::store::CsvSheet::setWidth | ( | int | w | ) | [inline] |
Definition at line 196 of file CsvSheet.h.
References coopy::store::EscapedTypedSheet< std::string >::s, and coopy::store::TypedSheet< T >::w.
Referenced by coopy::store::CsvTextBook::addSheet().
virtual DataSheet& coopy::store::DataSheet::tail | ( | ) | [inline, virtual, inherited] |
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, inherited] |
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, inherited] |
Render table as serialized text, using a default style.
Definition at line 173 of file DataSheet.h.
References coopy::store::DataSheet::encode().
Referenced by coopy::cmp::SheetPatcher::changeColumn(), main(), coopy::store::TextBook::toString(), and coopy::store::socialcalc::SocialCalcTextBook::write().
int coopy::store::EscapedTypedSheet< std::string >::width | ( | ) | const [inline, virtual, inherited] |
Implements coopy::store::DataSheet.
Definition at line 254 of file TypedSheet.h.
References coopy::store::EscapedTypedSheet< T >::s, and coopy::store::TypedSheet< T >::width().
TypedSheet<std::pair<std::string ,bool> > coopy::store::EscapedTypedSheet< std::string >::s [inherited] |
Definition at line 236 of file TypedSheet.h.
Referenced by addRecord(), cellString(), clear(), copy(), removeRow(), resize(), and setWidth().