Lucene++ - a full-featured, c++ search engine
API Documentation

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
PayloadAttribute.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6
7 #ifndef PAYLOADATTRIBUTE_H
8 #define PAYLOADATTRIBUTE_H
9
10 #include "Attribute.h"
11
12 namespace Lucene
13 {
15 class LPPAPI PayloadAttribute : public Attribute
16 {
17 public:
19 PayloadAttribute();
20
22 PayloadAttribute(PayloadPtr payload);
23
24 virtual ~PayloadAttribute();
25
26 LUCENE_CLASS(PayloadAttribute);
27
28 protected:
29 PayloadPtr payload;
30
31 public:
32 virtual String toString();
33
35 virtual PayloadPtr getPayload();
36
38 virtual void setPayload(PayloadPtr payload);
39
40 virtual void clear();
41 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
42 virtual bool equals(LuceneObjectPtr other);
43 virtual int32_t hashCode();
44 virtual void copyTo(AttributePtr target);
45 };
46 }
47
48 #endif

clucene.sourceforge.net