|
COOPY » Guide
version 0.6.5
|
#include <SheetSchema.h>
Public Member Functions | |
| virtual | ~SheetSchema () |
| virtual ColumnInfo | getColumnInfo (int x) const |
| virtual int | headerHeight () const |
| virtual int | getColumnCount () const |
| virtual int | getColumnIndexByName (const char *name) const |
| virtual bool | providesPrimaryKeys () const |
| virtual std::string | getSheetName () const |
| virtual bool | hasSheetName () const |
| virtual SheetSchema * | clone () const |
| virtual bool | isGuess () const |
| virtual bool | addedHeader () |
| virtual bool | deleteColumn (const ColumnRef &column) |
| virtual ColumnRef | insertColumn (const ColumnRef &column, const ColumnInfo &info) |
| virtual ColumnRef | moveColumn (const ColumnRef &src, const ColumnRef &base) |
| virtual bool | modifyColumn (const ColumnRef &column, const ColumnInfo &info) |
| virtual bool | setHeaderHeight (int hh) |
| virtual std::string | toString () const |
| virtual bool | isShadow () const |
| virtual bool | copy (const SheetSchema &ss) |
| int | addReference () |
| int | removeReference () |
| int | getReferenceCount () |
Definition at line 19 of file SheetSchema.h.
| virtual coopy::store::SheetSchema::~SheetSchema | ( | ) | [inline, virtual] |
Definition at line 21 of file SheetSchema.h.
| virtual bool coopy::store::SheetSchema::addedHeader | ( | ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 64 of file SheetSchema.h.
References COOPY_ASSERT.
Referenced by coopy::store::DataSheet::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().
| SheetSchema * SheetSchema::clone | ( | ) | const [virtual] |
Definition at line 8 of file SheetSchema.cpp.
References coopy::store::SimpleSheetSchema::addColumn(), coopy::store::ColumnInfo::getColumnType(), coopy::store::ColumnInfo::getName(), NULL, coopy::store::SimpleSheetSchema::setHeaderHeight(), and coopy::store::SimpleSheetSchema::setSheetName().
Referenced by coopy::cmp::Patcher::metaHint(), coopy::store::PolySheet::mustHaveSchema(), coopy::store::ShortTextBook::provideSheet(), and coopy::store::PolySheet::setMeta().
| virtual bool coopy::store::SheetSchema::copy | ( | const SheetSchema & | ss | ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 104 of file SheetSchema.h.
| virtual bool coopy::store::SheetSchema::deleteColumn | ( | const ColumnRef & | column | ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 70 of file SheetSchema.h.
Referenced by coopy::store::PolySheet::deleteColumn().
| virtual int coopy::store::SheetSchema::getColumnCount | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheetSchema, coopy::store::SimpleSheetSchema, coopy::store::mdb::JackSheetSchema, coopy::store::remotesql::RemoteSqlSheetSchema, and coopy::store::sqlite::SqliteSheetSchema.
Definition at line 32 of file SheetSchema.h.
Referenced by coopy::cmp::Patcher::addPoolsFromFlags(), coopy::store::json::JsonBook::addSheet(), coopy::store::CsvTextBook::addSheet(), coopy::app::Diff::apply(), coopy::store::TypedSheet< std::pair< T, bool > >::applySchema(), coopy::store::SimpleSheetSchema::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::PolySheet::createHeaders(), coopy::fold::FoldTool::fold(), getColumnIndexByName(), readPart(), CsvRender::renderHtml(), coopy::cmp::BookCompare::resolve(), coopy::store::NameSniffer::sniff(), and writePart().
| virtual int coopy::store::SheetSchema::getColumnIndexByName | ( | const char * | name | ) | const [inline, virtual] |
Definition at line 36 of file SheetSchema.h.
References getColumnCount(), getColumnInfo(), and coopy::store::ColumnInfo::getName().
Referenced by coopy::cmp::BookCompare::resolve().
| virtual ColumnInfo coopy::store::SheetSchema::getColumnInfo | ( | int | x | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheetSchema, coopy::store::SimpleSheetSchema, coopy::store::mdb::JackSheetSchema, coopy::store::remotesql::RemoteSqlSheetSchema, and coopy::store::sqlite::SqliteSheetSchema.
Definition at line 24 of file SheetSchema.h.
Referenced by coopy::cmp::Patcher::addPoolsFromFlags(), coopy::app::Diff::apply(), coopy::store::SimpleSheetSchema::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::PolySheet::createHeaders(), coopy::fold::FoldTool::fold(), getColumnIndexByName(), readPart(), CsvRender::renderHtml(), coopy::cmp::BookCompare::resolve(), coopy::store::NameSniffer::sniff(), coopy::store::IndexSniffer::sniff(), and writePart().
| int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
| virtual std::string coopy::store::SheetSchema::getSheetName | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheetSchema, coopy::store::SimpleSheetSchema, coopy::store::mdb::JackSheetSchema, coopy::store::remotesql::RemoteSqlSheetSchema, and coopy::store::sqlite::SqliteSheetSchema.
Definition at line 50 of file SheetSchema.h.
Referenced by coopy::cmp::Patcher::addPoolsFromFlags(), coopy::store::sqlite::SqliteTextBook::addSheet(), coopy::store::gnumeric::GnumericTextBook::addSheet(), coopy::store::json::JsonBook::addSheet(), coopy::store::CsvTextBook::addSheet(), coopy::cmp::SheetCompare::compare(), coopy::store::SimpleSheetSchema::copy(), coopy::store::sqlite::SqliteSheet::create(), coopy::store::socialcalc::SocialCalcTextBook::provideSheet(), coopy::store::ShortTextBook::provideSheet(), and coopy::store::TextBook::provideSheet().
| virtual bool coopy::store::SheetSchema::hasSheetName | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 54 of file SheetSchema.h.
Referenced by coopy::store::CsvTextBook::addSheet().
| virtual int coopy::store::SheetSchema::headerHeight | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 28 of file SheetSchema.h.
Referenced by coopy::store::SimpleSheetSchema::copy(), coopy::store::DataSheet::encode(), coopy::store::PolySheet::setRowOffset(), and coopy::store::NameSniffer::sniff().
| virtual ColumnRef coopy::store::SheetSchema::insertColumn | ( | const ColumnRef & | column, |
| const ColumnInfo & | info | ||
| ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 74 of file SheetSchema.h.
Referenced by coopy::store::PolySheet::insertColumn().
| virtual bool coopy::store::SheetSchema::isGuess | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 60 of file SheetSchema.h.
Referenced by coopy::store::SimpleSheetSchema::copy(), and coopy::store::NameSniffer::sniff().
| virtual bool coopy::store::SheetSchema::isShadow | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::sqlite::SqliteSheetSchema.
Definition at line 100 of file SheetSchema.h.
Referenced by coopy::store::PolySheet::deleteColumn(), coopy::store::PolySheet::insertColumn(), coopy::store::PolySheet::modifyColumn(), and coopy::store::PolySheet::moveColumn().
| virtual bool coopy::store::SheetSchema::modifyColumn | ( | const ColumnRef & | column, |
| const ColumnInfo & | info | ||
| ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 86 of file SheetSchema.h.
Referenced by coopy::fold::FoldTool::fold(), and coopy::store::PolySheet::modifyColumn().
| virtual ColumnRef coopy::store::SheetSchema::moveColumn | ( | const ColumnRef & | src, |
| const ColumnRef & | base | ||
| ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 80 of file SheetSchema.h.
Referenced by coopy::store::PolySheet::moveColumn().
| virtual bool coopy::store::SheetSchema::providesPrimaryKeys | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::mdb::AccessSheetSchema, coopy::store::SimpleSheetSchema, coopy::store::mdb::JackSheetSchema, coopy::store::remotesql::RemoteSqlSheetSchema, and coopy::store::sqlite::SqliteSheetSchema.
Definition at line 46 of file SheetSchema.h.
Referenced by coopy::store::IndexSniffer::sniff().
| 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::SheetSchema::setHeaderHeight | ( | int | hh | ) | [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 92 of file SheetSchema.h.
Referenced by coopy::store::TextBook::copy(), and coopy::store::PolySheet::createHeaders().
| virtual std::string coopy::store::SheetSchema::toString | ( | ) | const [inline, virtual] |
Reimplemented in coopy::store::SimpleSheetSchema.
Definition at line 96 of file SheetSchema.h.
Referenced by coopy::store::TextBook::copy(), and coopy::store::NameSniffer::sniff().
1.7.4