Tanl Linguistic Pipeline |
Abstract class for document info. More...
#include <DocInfo.h>
Public Types | |
typedef int | time32_t |
Public Member Functions | |
DocInfo (DocID id=0, IXE::Size size=0, time_t time=0) | |
DocID | ID () const |
IXE::Size | Size () const |
size in bytes. | |
time_t | Time () const |
last modified time. | |
virtual void | Dispose () |
Use for recycling an instance of object on the stack: e.g. | |
virtual bool | operator== (DocInfo const &other) |
Method used by DB table to determine whether object is already present in the table. | |
virtual void | mapFields (DocReader *dr, char const *field) |
Interface for Readers. | |
virtual std::ostream & | serialize (std::ostream &s) const |
META (DocInfo,(KEY(id, Field::autoincrement), FIELD(size), FIELD(time))) | |
Public Attributes | |
DocID | id |
document ID, primary key | |
IXE::Size | size |
in bytes | |
time32_t | time |
modification time | |
Friends | |
class | DocReader |
class | Indexer |
std::ostream & | operator<< (std::ostream &s, const DocInfo &d) |
Generic (polymorphic) printing support. |
Abstract class for document info.
virtual void IXE::DocInfo::Dispose | ( | ) | [inline, virtual] |
Use for recycling an instance of object on the stack: e.g.
in table cursor. We could use ~DocInfo(), but there are cases when the type is a parameter (typedef or template) so it cannot be invoked.
virtual void IXE::DocInfo::mapFields | ( | DocReader * | dr, | |
char const * | field | |||
) | [inline, virtual] |
Interface for Readers.
This method is invoked to inform a Reader of which field it should fill.
dr | is the document Reader involved. | |
field | is the name of the field being read by Reader. |
IXE::Size IXE::DocInfo::Size | ( | ) | const [inline] |
size in bytes.
References size.
time_t IXE::DocInfo::Time | ( | ) | const [inline] |
last modified time.
References time.