Switch to unified view

a/src/rcldb/rcldoc.h b/src/rcldb/rcldoc.h
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
#ifndef _RCLDOC_H_INCLUDED_
17
#ifndef _RCLDOC_H_INCLUDED_
18
#define _RCLDOC_H_INCLUDED_
18
#define _RCLDOC_H_INCLUDED_
19
/* @(#$Id: rcldoc.h,v 1.2 2007-01-17 13:53:41 dockes Exp $  (C) 2006 J.F.Dockes */
19
/* @(#$Id: rcldoc.h,v 1.3 2007-06-19 08:36:24 dockes Exp $  (C) 2006 J.F.Dockes */
20
20
21
#include <string>
21
#include <string>
22
#include <map>
22
23
23
#ifndef NO_NAMESPACES
24
#ifndef NO_NAMESPACES
24
using std::string;
25
using std::string;
26
using std::map;
25
namespace Rcl {
27
namespace Rcl {
26
#endif
28
#endif
27
29
28
/**
30
/**
29
 * Dumb holder for document attributes and data
31
 * Dumb holder for document attributes and data
...
...
45
                         // Set by DbIndexer::processone
47
                         // Set by DbIndexer::processone
46
    string dmtime;       // Data reference date (same format). Ie: mail date
48
    string dmtime;       // Data reference date (same format). Ie: mail date
47
                         // Possibly set by handler
49
                         // Possibly set by handler
48
    string origcharset;  // Charset we transcoded from (in case we want back)
50
    string origcharset;  // Charset we transcoded from (in case we want back)
49
                         // Possibly set by handler
51
                         // Possibly set by handler
50
    string title;        // Possibly set by handler
52
51
    string author;       // Possibly set by handler
53
    // A map for textual metadata like, author, keywords, abstract, title
52
    string keywords;     // Possibly set by handler
54
    // Entries possibly set by handler. If a field-name to prefix translation 
53
    string abstract;     // Possibly set by handler
55
    // exists, the terms will be indexed with a prefix.
54
    bool   syntabs;      // true if abstract is just the top of doc, not an 
56
    map<string, string> meta; 
55
                         // explicit document attribute
57
58
    // Attribute for the "abstract" entry. true if it is just the top
59
    // of doc, not a native document attribute
60
    bool   syntabs;      
61
56
    string fbytes;       // File size. Set by Db::Add
62
    string fbytes;       // File size. Set by Db::Add
57
    string dbytes;       // Doc size. Set by Db::Add from text length
63
    string dbytes;       // Doc size. Set by Db::Add from text length
58
64
59
    // The following fields don't go to the db record
65
    // The following fields don't go to the db record
60
    
66
    
...
...
70
    ipath.erase();
76
    ipath.erase();
71
    mimetype.erase();
77
    mimetype.erase();
72
    fmtime.erase();
78
    fmtime.erase();
73
    dmtime.erase();
79
    dmtime.erase();
74
    origcharset.erase();
80
    origcharset.erase();
75
  title.erase();
81
  meta.clear();
76
  keywords.erase();
77
  abstract.erase();
78
    syntabs = false;
82
    syntabs = false;
79
    fbytes.erase();
83
    fbytes.erase();
80
    dbytes.erase();
84
    dbytes.erase();
81
85
82
    text.erase();
86
    text.erase();