diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-11-05 13:28:23 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-11-05 13:28:23 +0100 |
commit | 8c787c3591c1c885b91a54128835b400858c5cca (patch) | |
tree | eca1b776912a305c4d45b3964038278a2fae1ead /debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h | |
parent | fe188b907cdf30dfdfe0eba9412e7f8749fec158 (diff) | |
download | extra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.tar.gz extra-dependencies-8c787c3591c1c885b91a54128835b400858c5cca.zip |
DEB htdig: Added to repository.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h')
-rw-r--r-- | debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h b/debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h new file mode 100644 index 00000000..7f4f59ff --- /dev/null +++ b/debian/htdig/htdig-3.2.0b6/htword/WordRecordInfo.h @@ -0,0 +1,83 @@ +// +// WordRecord.h +// +// NAME +// information on the record structure of the inverted index. +// +// SYNOPSIS +// +// Only called thru WordContext::Initialize() +// +// DESCRIPTION +// +// The structure of a record is very limited. It can contain +// at most two integer (int) values. +// +// CONFIGURATION +// +// wordlist_wordrecord_description {NONE|DATA} (no default) +// NONE: the record is empty +// <br> +// DATA: the record contains two integers (int) +// +// +// END +// +// WordRecord: Record for storing word information in the word database +// Each word occurrence is stored as a separate key/record pair. +// +// Part of the ht://Dig package <http://www.htdig.org/> +// Copyright (c) 1999-2004 The ht://Dig Group +// For copyright details, see the file COPYING in your distribution +// or the GNU Library General Public License (LGPL) version 2 or later +// <http://www.gnu.org/copyleft/lgpl.html> +// +// $Id: WordRecordInfo.h,v 1.4 2004/05/28 13:15:28 lha Exp $ +// + +#ifndef _WordRecordInfo_h_ +#define _WordRecordInfo_h_ + +// +// Possible values of the type data field +// +#define WORD_RECORD_INVALID 0 +#define WORD_RECORD_DATA 1 +#define WORD_RECORD_STATS 2 +#define WORD_RECORD_NONE 3 + +#ifndef SWIG +// +// Meta information about WordRecord +// +// wordlist_wordrecord_description: DATA +// use WordRecordStorage::data for each word occurent +// wordlist_wordrecord_description: NONE +// or +// wordlist_wordrecord_description not specified +// the data associated with each word occurrence is empty +// +class WordRecordInfo +{ + public: + WordRecordInfo(const Configuration& config); + // + // Unique instance handlers + // + static void Initialize(const Configuration& config); + static WordRecordInfo* Instance() { + if(instance) return instance; + fprintf(stderr, "WordRecordInfo::Instance: no instance\n"); + return 0; + } + + int default_type; + + // + // Unique instance pointer + // + static WordRecordInfo* instance; +}; +#endif /* SWIG */ + +#endif /* _WordRecordInfo_h_ */ |