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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
TestPoint.h
Go to the documentation of this file.
1 
2 // 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 TESTPOINT_H
8 #define TESTPOINT_H
9 
10 #include "Lucene.h"
11 
12 namespace Lucene {
13 
15 class TestPoint {
16 public:
17  virtual ~TestPoint();
18 
19 protected:
20  static MapStringInt testMethods;
21  static bool enable;
22 
23 public:
24  static void enableTestPoints();
25  static void clear();
26  static void setTestPoint(const String& object, const String& method, bool point);
27  static bool getTestPoint(const String& object, const String& method);
28  static bool getTestPoint(const String& method);
29 };
30 
31 class TestScope {
32 public:
33  TestScope(const String& object, const String& method);
34  virtual ~TestScope();
35 
36 protected:
37  String object;
38  String method;
39 };
40 
41 }
42 
43 #endif

clucene.sourceforge.net