|
COOPY » Guide
version 0.6.5
|
#include <Property.h>
Public Member Functions | |
| virtual bool | isMap () const |
| virtual bool | isNull () const |
| virtual Property & | asMap () |
| virtual const Property & | asMap () const |
| bool | put (const char *key, int val) |
| bool | put (const char *key, bool val) |
| bool | put (const char *key, const char *str) |
| bool | put (const char *key, const std::string &str) |
| Property & | nest (const char *key) |
| bool | check (const char *key) const |
| bool | flag (const char *key, bool def) const |
| const Value & | get (const char *key) const |
| PolyValue | get (const char *key, PolyValue default_value) const |
| std::string | toString () const |
| virtual int | asInt () const |
| virtual bool | asBoolean () const |
| virtual std::string | asString () const |
| virtual bool | isInt () const |
| virtual bool | isBoolean () const |
| virtual bool | isString () const |
| int | addReference () |
| int | removeReference () |
| int | getReferenceCount () |
Static Public Member Functions | |
| static Property & | getNullProperty () |
Definition at line 156 of file Property.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().
| virtual bool coopy::store::Value::asBoolean | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 24 of file Property.h.
Referenced by coopy::store::PolyValue::asBoolean(), coopy::store::PolyBook::attach(), and write().
| virtual int coopy::store::Value::asInt | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 23 of file Property.h.
Referenced by coopy::store::PolyValue::asInt(), coopy::store::remotesql::RemoteSqlTextBook::open(), renderJsonBook(), coopy::store::SheetStyle::setFromProperty(), and write().
| virtual Property& coopy::store::Property::asMap | ( | ) | [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 165 of file Property.h.
| virtual const Property& coopy::store::Property::asMap | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 166 of file Property.h.
| virtual std::string coopy::store::Value::asString | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 25 of file Property.h.
Referenced by coopy::store::PolyValue::asString(), coopy::store::PolyBook::attach(), coopy::store::TextBook::copy(), copyBook(), coopy::store::PolyBook::expand(), coopy::store::sqlite::SqliteTextBook::open(), coopy::store::socialcalc::SocialCalcTextBook::open(), coopy::store::remotesql::RemoteSqlTextBook::open(), coopy::store::mdb::JackTextBook::open(), coopy::store::gnumeric::GnumericTextBookFactory::open(), coopy::store::ShortTextBook::open(), coopy::store::json::JsonBook::open(), coopy::store::json::JsonBookFactory::open(), coopy::store::CsvTextBookFactory::open(), coopy::store::FileIO::open(), coopy::store::mdb::AccessTextBook::open(), coopy::store::FileIO::openAndWrite(), coopy::store::sqlite::SqliteTextBook::read(), coopy::store::SheetStyle::setFromProperty(), and write().
| bool coopy::store::Property::check | ( | const char * | key | ) | const [inline] |
Definition at line 196 of file Property.h.
Referenced by coopy::store::PolyBook::attach(), coopy::store::PolyBook::expand(), coopy::store::sqlite::SqliteTextBook::open(), coopy::store::socialcalc::SocialCalcTextBook::open(), coopy::store::remotesql::RemoteSqlTextBook::open(), coopy::store::mdb::JackTextBook::open(), coopy::store::gnumeric::GnumericTextBookFactory::open(), coopy::store::ShortTextBook::open(), coopy::store::json::JsonBook::open(), coopy::store::json::JsonBookFactory::open(), coopy::store::CsvTextBookFactory::open(), coopy::store::mdb::AccessTextBook::open(), coopy::store::sqlite::SqliteTextBook::read(), renderJsonBook(), coopy::store::SheetStyle::setFromProperty(), and write().
| bool coopy::store::Property::flag | ( | const char * | key, |
| bool | def | ||
| ) | const [inline] |
Definition at line 201 of file Property.h.
| const Value& coopy::store::Property::get | ( | const char * | key | ) | const [inline] |
Definition at line 207 of file Property.h.
Referenced by coopy::store::PolyBook::attach(), coopy::store::TextBook::copy(), copyBook(), coopy::store::PolyBook::expand(), coopy::store::sqlite::SqliteTextBook::open(), coopy::store::socialcalc::SocialCalcTextBook::open(), coopy::store::remotesql::RemoteSqlTextBook::open(), coopy::store::mdb::JackTextBook::open(), coopy::store::gnumeric::GnumericTextBookFactory::open(), coopy::store::ShortTextBook::open(), coopy::store::json::JsonBook::open(), coopy::store::json::JsonBookFactory::open(), coopy::store::CsvTextBookFactory::open(), coopy::store::FileIO::open(), coopy::store::mdb::AccessTextBook::open(), coopy::store::FileIO::openAndWrite(), coopy::store::sqlite::SqliteTextBook::read(), renderJsonBook(), coopy::store::SheetStyle::setFromProperty(), and write().
Definition at line 213 of file Property.h.
| static Property& coopy::store::Property::getNullProperty | ( | ) | [inline, static] |
Definition at line 221 of file Property.h.
Referenced by coopy::store::Value::asMap().
| int coopy::store::RefCount::getReferenceCount | ( | ) | [inline, inherited] |
Definition at line 40 of file RefCount.h.
| virtual bool coopy::store::Value::isBoolean | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 30 of file Property.h.
Referenced by coopy::store::PolyValue::isBoolean().
| virtual bool coopy::store::Value::isInt | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 29 of file Property.h.
Referenced by coopy::store::PolyValue::isInt().
| virtual bool coopy::store::Property::isMap | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 163 of file Property.h.
| virtual bool coopy::store::Property::isNull | ( | ) | const [inline, virtual] |
Reimplemented from coopy::store::Value.
Definition at line 164 of file Property.h.
| virtual bool coopy::store::Value::isString | ( | ) | const [inline, virtual, inherited] |
Reimplemented in coopy::store::PolyValue.
Definition at line 31 of file Property.h.
Referenced by coopy::store::PolyValue::isString().
| Property& coopy::store::Property::nest | ( | const char * | key | ) | [inline] |
Definition at line 188 of file Property.h.
Referenced by coopy::store::JsonProperty::add(), and coopy::store::PolyBook::readAndWillWrite().
| bool coopy::store::Property::put | ( | const char * | key, |
| const std::string & | str | ||
| ) | [inline] |
Definition at line 183 of file Property.h.
| bool coopy::store::Property::put | ( | const char * | key, |
| const char * | str | ||
| ) | [inline] |
Definition at line 178 of file Property.h.
| bool coopy::store::Property::put | ( | const char * | key, |
| bool | val | ||
| ) | [inline] |
Definition at line 173 of file Property.h.
| bool coopy::store::Property::put | ( | const char * | key, |
| int | val | ||
| ) | [inline] |
Definition at line 168 of file Property.h.
Referenced by coopy::store::JsonProperty::add(), coopy::store::PolyBook::attach(), coopy::store::PolyBook::attachReadWrite(), coopy::store::PolyBook::expand(), coopy::store::PolyBook::getType(), main(), coopy::store::PolyBook::read(), coopy::store::PolyBook::readAndWillWrite(), coopy::store::PolyBook::readIfExists(), coopy::fold::FoldTool::unfold(), coopy::store::PolyBook::write(), coopy::store::CsvTextBook::write(), and coopy::store::CsvFile::write().
| 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().
| std::string Property::toString | ( | ) | const [virtual] |
Implements coopy::store::Value.
Definition at line 122 of file Property.cpp.
Referenced by coopy::store::PolyBook::attach(), coopy::store::PolyBook::expand(), and write().
1.7.4