C++ main module for gpm Package  1.0
GPM_CoreTest.h
Go to the documentation of this file.
1 #ifndef GPM_CoreTest_H
2 #define GPM_CoreTest_H
3 
4 #include "CORE_Object.h"
5 
14 class GPM_CoreTest : public virtual CORE_Object {
15 
16  SP_OBJECT(GPM_CoreTest);
17  // ATTRIBUTES
18 
19 public:
20  static const tFlag DEFAULT_TEST;
21  static const tFlag GRAPH_TEST;
22  static const tFlag ISOMORPHISM_TEST;
23  static const tFlag MORPHISM_TEST;
24  static const tFlag REDUCE_TEST;
25  static const tFlag MERGING_TEST;
26 
27 
28 
29 private:
30  tFlag mTestNumber;
31 
32 protected:
33  // METHODS
34 
35  // CONSTRUCTORS
36 
39  GPM_CoreTest(void);
40 
41 
42 
43  // DESTRUCTORS
44 
45 
48  virtual ~GPM_CoreTest(void);
49 
50 
51 
52 public:
55  inline static SP::GPM_CoreTest New() {
56  SP::GPM_CoreTest p(new GPM_CoreTest(),GPM_CoreTest::Delete());
57  p->setThis(p);
58  return p;
59  };
60 
63  inline void setTestNumber(const tFlag& t) {
64  mTestNumber=t;
65  }
66 
69  tBoolean test();
72  virtual tBoolean test(const tFlag& testNumber);
73 
74 protected:
75  tString searchPath(const tString& fileName) const;
76 
77 private:
78  tBoolean graphTest() const;
79  tBoolean isomorphismTest() const;
80  tBoolean morphismTest() const;
81  tBoolean patternReplacedTest() const;
82  tBoolean mergingTest() const;
83  tBoolean reduceTest() const;
84 
85 };
86 
87 #endif
GPM_CoreTest(void)
create
Definition: GPM_CoreTest.cpp:21
static const tFlag ISOMORPHISM_TEST
Definition: GPM_CoreTest.h:22
virtual ~GPM_CoreTest(void)
destroy
Definition: GPM_CoreTest.cpp:26
void setTestNumber(const tFlag &t)
set the test number
Definition: GPM_CoreTest.h:63
static SP::GPM_CoreTest New()
create a test class
Definition: GPM_CoreTest.h:55
#define tBoolean
Definition: types.h:35
static const tFlag MERGING_TEST
Definition: GPM_CoreTest.h:25
static const tFlag GRAPH_TEST
Definition: GPM_CoreTest.h:21
static const tFlag DEFAULT_TEST
Definition: GPM_CoreTest.h:20
This class is a test class for gpm in core package.
Definition: GPM_CoreTest.h:14
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
static const tFlag REDUCE_TEST
Definition: GPM_CoreTest.h:24
tString searchPath(const tString &fileName) const
Definition: GPM_CoreTest.cpp:91
tBoolean test()
make the test
Definition: GPM_CoreTest.cpp:29
static const tFlag MORPHISM_TEST
Definition: GPM_CoreTest.h:23
DEFINE_SPTR(GPM_CoreTest)
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14