TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / include / EventsWanted.h
1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3
4 #ifndef EventsWanted_INCLUDED
5 #define EventsWanted_INCLUDED 1
6
7 #include "Boolean.h"
8
9 #ifdef SP_NAMESPACE
10 namespace SP_NAMESPACE {
11 #endif
12
13 class SP_API EventsWanted {
14 public:
15   EventsWanted();
16   Boolean wantInstanceMarkup() const;
17   Boolean wantCommentDecls() const; // in instance
18   Boolean wantMarkedSections() const; // in instance
19   Boolean wantPrologMarkup() const;
20   void addInstanceMarkup();
21   void addCommentDecls();
22   void addMarkedSections();
23   void addPrologMarkup();
24 private:
25   PackedBoolean instanceMarkup_;
26   PackedBoolean commentDecls_;
27   PackedBoolean markedSections_;
28   PackedBoolean prologMarkup_;
29 };
30
31 inline
32 EventsWanted::EventsWanted()
33 : instanceMarkup_(0), commentDecls_(0), markedSections_(0), prologMarkup_(0)
34 {
35 }
36
37 inline
38 Boolean EventsWanted::wantInstanceMarkup() const
39 {
40   return instanceMarkup_;
41 }
42
43 inline
44 void EventsWanted::addInstanceMarkup()
45 {
46   instanceMarkup_ = 1;
47   commentDecls_ = 1;
48   markedSections_ = 1;
49 }
50
51 inline
52 Boolean EventsWanted::wantCommentDecls() const
53 {
54   return commentDecls_;
55 }
56
57 inline
58 void EventsWanted::addCommentDecls()
59 {
60   commentDecls_ = 1;
61 }
62
63 inline
64 Boolean EventsWanted::wantMarkedSections() const
65 {
66   return markedSections_;
67 }
68
69 inline
70 void EventsWanted::addMarkedSections()
71 {
72   markedSections_ = 1;
73 }
74
75 inline
76 Boolean EventsWanted::wantPrologMarkup() const
77 {
78   return prologMarkup_;
79 }
80
81 inline
82 void EventsWanted::addPrologMarkup()
83 {
84   prologMarkup_ = 1;
85 }
86
87 #ifdef SP_NAMESPACE
88 }
89 #endif
90
91 #endif /* not EventsWanted_INCLUDED */