VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testDtSubjectBinder.h
Go to the documentation of this file.
1 
2 #include <UnitTest++.h>
3 #include "commonFixutres.h"
6 
7 
9 // TestSubject
11 
13 {
14 
15 public:
16 
18 
19  virtual ~TestSubject();
20 
23  static const char* className();
24 
25 protected:
26 
28  static const char* myClassName;
29 
30 };
31 
32 
34 
35 const char* TestSubject::myClassName = "TestSubject";
36 
38 : myDe(de)
39 {
40  // Activate user interface components
42  if(announcer)
43  {
44  announcer->activate(this);
45  }
46 };
47 
49 {
50  // Deactivate user interface components
52  if(announcer)
53  {
54  announcer->deactivate(this);
55  }
56 }
57 
59 {
60  return myClassName;
61 }
62 
63 
65 // TestObserverLogic
67 
69 
71 {
72 
73 public:
74 
76 
77  bool slotActivateCalled();
78 
79  virtual void slot_activate(TestSubject* subject);
80 
81  virtual void slot_deactivate(TestSubject* subject);
82 
83 protected:
84 
86 
88 
89 };
90 
92 {
93  TestObserverLogic* logic = new TestObserverLogic(de);
94  logic->bind(de);
95  return logic;
96 }
97 
99 : mySlotActivatedCalledFlag(false)
100 {
101 }
102 
104 {
106 }
107 
109 {
111 }
112 
114 {
115 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)