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

SimpleFSLockFactory.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2014 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 public:
22 SimpleFSLockFactory();
23
26 SimpleFSLockFactory(const String& lockDir);
27
28 virtual ~SimpleFSLockFactory();
29
30 LUCENE_CLASS(SimpleFSLockFactory);
31
32 public:
34 virtual LockPtr makeLock(const String& lockName);
35
37 virtual void clearLock(const String& lockName);
38 };
39
40 }
41
42 #endif
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene::LockPtr
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
Lucene::FSLockFactory
Base class for file system based locking implementation.
Definition: FSLockFactory.h:15
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::SimpleFSLockFactory
Implements LockFactory using File#createNewFile().
Definition: SimpleFSLockFactory.h:17
Lock.h
FSLockFactory.h

clucene.sourceforge.net