|
a/src/rcldb/rcldb.h |
|
b/src/rcldb/rcldb.h |
1 |
#ifndef _DB_H_INCLUDED_
|
1 |
#ifndef _DB_H_INCLUDED_
|
2 |
#define _DB_H_INCLUDED_
|
2 |
#define _DB_H_INCLUDED_
|
3 |
/* @(#$Id: rcldb.h,v 1.12 2005-02-10 15:21:12 dockes Exp $ (C) 2004 J.F.Dockes */
|
3 |
/* @(#$Id: rcldb.h,v 1.13 2005-03-25 09:40:27 dockes Exp $ (C) 2004 J.F.Dockes */
|
4 |
|
4 |
|
5 |
#include <string>
|
5 |
#include <string>
|
6 |
#include <list>
|
6 |
#include <list>
|
7 |
|
7 |
|
8 |
#ifndef NO_NAMESPACES
|
8 |
#ifndef NO_NAMESPACES
|
|
... |
|
... |
29 |
/**
|
29 |
/**
|
30 |
* Dumb bunch holder for document attributes and data
|
30 |
* Dumb bunch holder for document attributes and data
|
31 |
*/
|
31 |
*/
|
32 |
class Doc {
|
32 |
class Doc {
|
33 |
public:
|
33 |
public:
|
34 |
// This fields potentially go into the document data record
|
34 |
// These fields potentially go into the document data record
|
35 |
string url;
|
35 |
string url;
|
|
|
36 |
string ipath;
|
36 |
string mimetype;
|
37 |
string mimetype;
|
37 |
string mtime; // Modification time as decimal ascii
|
38 |
string mtime; // Modification time as decimal ascii
|
38 |
string origcharset;
|
39 |
string origcharset;
|
39 |
string title;
|
40 |
string title;
|
40 |
string keywords;
|
41 |
string keywords;
|
41 |
string abstract;
|
42 |
string abstract;
|
42 |
|
43 |
|
43 |
string text;
|
44 |
string text;
|
|
|
45 |
|
44 |
void erase() {
|
46 |
void erase() {
|
45 |
url.erase();
|
47 |
url.erase();
|
|
|
48 |
ipath.erase();
|
46 |
mimetype.erase();
|
49 |
mimetype.erase();
|
47 |
mtime.erase();
|
50 |
mtime.erase();
|
48 |
origcharset.erase();
|
51 |
origcharset.erase();
|
49 |
title.erase();
|
52 |
title.erase();
|
50 |
keywords.erase();
|
53 |
keywords.erase();
|