|
COOPY » Guide
version 0.6.5
|
#include <FormatSniffer.h>
Public Member Functions | |
| FormatSniffer () | |
| virtual | ~FormatSniffer () |
| bool | setString (const char *str) |
| bool | open (const char *fname, bool caching=true) |
| bool | close () |
| bool | wrap (coopy::store::FileIO &fin, bool caching) |
| Format | getFormat () |
| virtual std::string | read () |
| std::string | readLine (bool &eof) |
Definition at line 18 of file FormatSniffer.h.
| coopy::format::FormatSniffer::FormatSniffer | ( | ) | [inline] |
Definition at line 23 of file FormatSniffer.h.
| virtual coopy::format::FormatSniffer::~FormatSniffer | ( | ) | [inline, virtual] |
Definition at line 26 of file FormatSniffer.h.
References close().
| bool FormatSniffer::close | ( | ) |
Definition at line 45 of file FormatSniffer.cpp.
Referenced by ~FormatSniffer().
| Format FormatSniffer::getFormat | ( | ) | [virtual] |
Implements coopy::format::Reader.
Definition at line 52 of file FormatSniffer.cpp.
References coopy::format::FORMAT_BOOK_CSVS, coopy::format::FORMAT_BOOK_SQLITE, coopy::format::FORMAT_PATCH_CSV, coopy::format::FORMAT_PATCH_HUMAN, coopy::format::FORMAT_PATCH_TDIFF, coopy::format::Format::id, and coopy::format::Format::name.
Referenced by coopy::store::PolyBook::expand(), and coopy::store::sqlite::SqliteTextBook::read().
| bool FormatSniffer::open | ( | const char * | fname, |
| bool | caching = true |
||
| ) |
Definition at line 32 of file FormatSniffer.cpp.
References dbg_printf.
Referenced by coopy::store::PolyBook::expand(), coopy::store::socialcalc::SocialCalcTextBook::open(), and coopy::store::json::JsonBook::read().
| virtual std::string coopy::format::FormatSniffer::read | ( | ) | [inline, virtual] |
Implements coopy::format::Reader.
Definition at line 39 of file FormatSniffer.h.
Referenced by coopy::store::socialcalc::SocialCalcTextBook::open(), and coopy::store::json::JsonBook::read().
| string Reader::readLine | ( | bool & | eof | ) | [inherited] |
Definition at line 6 of file Reader.cpp.
| bool FormatSniffer::setString | ( | const char * | str | ) |
Definition at line 11 of file FormatSniffer.cpp.
Referenced by coopy::store::sqlite::SqliteTextBook::read().
| bool FormatSniffer::wrap | ( | coopy::store::FileIO & | fin, |
| bool | caching | ||
| ) |
Definition at line 17 of file FormatSniffer.cpp.
References coopy::store::FileIO::fread().
1.7.4