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
SimpleFSLockFactory.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 SIMPLEFSLOCKFACTORY_H
8 #define SIMPLEFSLOCKFACTORY_H
9
10 #include "FSLockFactory.h"
11 #include "Lock.h"
12
13 namespace Lucene
14 {
17 class LPPAPI SimpleFSLockFactory : public FSLockFactory
18 {
19 public:
23 SimpleFSLockFactory();
24
27 SimpleFSLockFactory(const String& lockDir);
28
29 virtual ~SimpleFSLockFactory();
30
31 LUCENE_CLASS(SimpleFSLockFactory);
32
33 public:
35 virtual LockPtr makeLock(const String& lockName);
36
38 virtual void clearLock(const String& lockName);
39 };
40 }
41
42 #endif

clucene.sourceforge.net