COOPY » Guide
version 0.6.5
|
#include <SheetSchema.h>
Public Member Functions | |
SimpleSheetSchema () | |
virtual bool | copy (const SheetSchema &ss) |
virtual bool | addedHeader () |
virtual bool | setHeaderHeight (int hh) |
virtual int | headerHeight () const |
void | setSheetName (const char *name) |
bool | addColumn (const char *name) |
bool | addColumn (const char *name, const ColumnType &kind) |
virtual ColumnInfo | getColumnInfo (int x) const |
virtual ColumnType & | modifyType (int x) |
virtual int | getColumnCount () const |
virtual bool | providesPrimaryKeys () const |
virtual std::string | getSheetName () const |
virtual bool | isGuess () const |
void | setGuess (bool flag) |
void | setHasSheetName (bool flag) |
virtual bool | hasSheetName () const |
virtual bool | deleteColumn (const ColumnRef &column) |
virtual ColumnRef | moveColumn (const ColumnRef &src, const ColumnRef &base) |
virtual ColumnRef | insertColumn (const ColumnRef &column, const ColumnInfo &info) |
virtual bool | modifyColumn (const ColumnRef &column, const ColumnInfo &info) |
virtual std::string | toString () const |
virtual int | getColumnIndexByName (const char *name) const |
virtual SheetSchema * | clone () const |
virtual bool | isShadow () const |
int | addReference () |
int | removeReference () |
int | getReferenceCount () |
Definition at line 110 of file SheetSchema.h.
coopy::store::SimpleSheetSchema::SimpleSheetSchema | ( | ) | [inline] |
Definition at line 119 of file SheetSchema.h.
bool coopy::store::SimpleSheetSchema::addColumn | ( | const char * | name | ) | [inline] |
Definition at line 158 of file SheetSchema.h.
Referenced by assertColumn(), coopy::cmp::MergeOutputRowOps::changeRow(), coopy::store::SheetSchema::clone(), coopy::cmp::MergeOutputIndex::declareLink(), coopy::cmp::MergeOutputFilter::emitPreamble(), coopy::cmp::MergeOutputStats::flush(), coopy::fold::FoldTool::fold(), insertColumn(), coopy::store::json::JsonBook::read(), and coopy::store::PoolImpl::save().
bool coopy::store::SimpleSheetSchema::addColumn | ( | const char * | name, |
const ColumnType & | kind | ||
) | [inline] |
Definition at line 164 of file SheetSchema.h.
virtual bool coopy::store::SimpleSheetSchema::addedHeader | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 140 of file SheetSchema.h.
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, inherited] |
Definition at line 8 of file SheetSchema.cpp.
References addColumn(), coopy::store::ColumnInfo::getColumnType(), coopy::store::ColumnInfo::getName(), NULL, setHeaderHeight(), and setSheetName().
Referenced by coopy::cmp::Patcher::metaHint(), coopy::store::PolySheet::mustHaveSchema(), coopy::store::ShortTextBook::provideSheet(), and coopy::store::PolySheet::setMeta().
virtual bool coopy::store::SimpleSheetSchema::copy | ( | const SheetSchema & | ss | ) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 125 of file SheetSchema.h.
References coopy::store::SheetSchema::getColumnCount(), coopy::store::SheetSchema::getColumnInfo(), coopy::store::ColumnInfo::getColumnType(), coopy::store::ColumnInfo::getName(), coopy::store::SheetSchema::getSheetName(), coopy::store::SheetSchema::headerHeight(), and coopy::store::SheetSchema::isGuess().
Referenced by coopy::store::json::JsonBook::addSheet(), coopy::store::CsvTextBook::addSheet(), coopy::store::TextBook::fixSchema(), and coopy::fold::FoldTool::fold().
virtual bool coopy::store::SimpleSheetSchema::deleteColumn | ( | const ColumnRef & | column | ) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 206 of file SheetSchema.h.
References coopy::store::ColumnRef::getIndex().
virtual int coopy::store::SimpleSheetSchema::getColumnCount | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 178 of file SheetSchema.h.
Referenced by assertColumn(), coopy::store::TextBook::fixSchema(), coopy::fold::FoldTool::fold(), and insertColumn().
virtual int coopy::store::SheetSchema::getColumnIndexByName | ( | const char * | name | ) | const [inline, virtual, inherited] |
Definition at line 36 of file SheetSchema.h.
References coopy::store::SheetSchema::getColumnCount(), coopy::store::SheetSchema::getColumnInfo(), and coopy::store::ColumnInfo::getName().
Referenced by coopy::cmp::BookCompare::resolve().
virtual ColumnInfo coopy::store::SimpleSheetSchema::getColumnInfo | ( | int | x | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 170 of file SheetSchema.h.
Referenced by assertColumn(), coopy::store::TextBook::fixSchema(), and coopy::fold::FoldTool::fold().
int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
virtual std::string coopy::store::SimpleSheetSchema::getSheetName | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 186 of file SheetSchema.h.
Referenced by coopy::store::TextBook::fixSchema().
virtual bool coopy::store::SimpleSheetSchema::hasSheetName | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 202 of file SheetSchema.h.
virtual int coopy::store::SimpleSheetSchema::headerHeight | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 150 of file SheetSchema.h.
virtual ColumnRef coopy::store::SimpleSheetSchema::insertColumn | ( | const ColumnRef & | column, |
const ColumnInfo & | info | ||
) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 242 of file SheetSchema.h.
References addColumn(), getColumnCount(), coopy::store::ColumnInfo::getColumnType(), coopy::store::ColumnRef::getIndex(), and coopy::store::ColumnInfo::getName().
virtual bool coopy::store::SimpleSheetSchema::isGuess | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 190 of file SheetSchema.h.
virtual bool coopy::store::SheetSchema::isShadow | ( | ) | const [inline, virtual, inherited] |
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::SimpleSheetSchema::modifyColumn | ( | const ColumnRef & | column, |
const ColumnInfo & | info | ||
) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 255 of file SheetSchema.h.
References coopy::store::ColumnRef::getIndex(), and coopy::store::ColumnInfo::getName().
Referenced by assertColumn().
virtual ColumnType& coopy::store::SimpleSheetSchema::modifyType | ( | int | x | ) | [inline, virtual] |
Definition at line 174 of file SheetSchema.h.
Referenced by coopy::store::TextBook::fixSchema().
virtual ColumnRef coopy::store::SimpleSheetSchema::moveColumn | ( | const ColumnRef & | src, |
const ColumnRef & | base | ||
) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 212 of file SheetSchema.h.
References coopy::store::ColumnRef::getIndex().
virtual bool coopy::store::SimpleSheetSchema::providesPrimaryKeys | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 182 of file SheetSchema.h.
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().
void coopy::store::SimpleSheetSchema::setGuess | ( | bool | flag | ) | [inline] |
Definition at line 194 of file SheetSchema.h.
void coopy::store::SimpleSheetSchema::setHasSheetName | ( | bool | flag | ) | [inline] |
Definition at line 198 of file SheetSchema.h.
virtual bool coopy::store::SimpleSheetSchema::setHeaderHeight | ( | int | hh | ) | [inline, virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 145 of file SheetSchema.h.
Referenced by coopy::store::SheetSchema::clone().
void coopy::store::SimpleSheetSchema::setSheetName | ( | const char * | name | ) | [inline] |
Definition at line 154 of file SheetSchema.h.
Referenced by coopy::cmp::MergeOutputRowOps::changeRow(), coopy::store::SheetSchema::clone(), coopy::cmp::MergeOutputIndex::declareLink(), coopy::cmp::MergeOutputFilter::emitPreamble(), coopy::cmp::MergeOutputStats::flush(), coopy::fold::FoldTool::fold(), coopy::store::json::JsonBook::read(), and coopy::store::PoolImpl::save().
std::string SimpleSheetSchema::toString | ( | ) | const [virtual] |
Reimplemented from coopy::store::SheetSchema.
Definition at line 21 of file SheetSchema.cpp.
References stringer_encoder().