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
TypeAttribute.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 TYPEATTRIBUTE_H
8 #define TYPEATTRIBUTE_H
9
10 #include "Attribute.h"
11
12 namespace Lucene
13 {
15 class LPPAPI TypeAttribute : public Attribute
16 {
17 public:
18 TypeAttribute();
19 TypeAttribute(const String& type);
20 virtual ~TypeAttribute();
21
22 LUCENE_CLASS(TypeAttribute);
23
24 protected:
25 String _type;
26 static const String& DEFAULT_TYPE();
27
28 public:
29 virtual String toString();
30
32 String type();
33
36 void setType(const String& type);
37
38 virtual void clear();
39 virtual bool equals(LuceneObjectPtr other);
40 virtual int32_t hashCode();
41 virtual void copyTo(AttributePtr target);
42 virtual LuceneObjectPtr clone(LuceneObjectPtr other = LuceneObjectPtr());
43 };
44 }
45
46 #endif

clucene.sourceforge.net