3065 some functions in the tcp module can be static
[unleashed.git] / usr / src / cmd / man / src / util / nsgmls.src / include / EventsWanted.h
blob25f0eb1c0237784eb4442f57a7dab584330958ab
1 // Copyright (c) 1994 James Clark
2 // See the file COPYING for copying permission.
3 #pragma ident "%Z%%M% %I% %E% SMI"
5 #ifndef EventsWanted_INCLUDED
6 #define EventsWanted_INCLUDED 1
8 #include "Boolean.h"
10 #ifdef SP_NAMESPACE
11 namespace SP_NAMESPACE {
12 #endif
14 class SP_API EventsWanted {
15 public:
16 EventsWanted();
17 Boolean wantInstanceMarkup() const;
18 Boolean wantCommentDecls() const; // in instance
19 Boolean wantMarkedSections() const; // in instance
20 Boolean wantPrologMarkup() const;
21 void addInstanceMarkup();
22 void addCommentDecls();
23 void addMarkedSections();
24 void addPrologMarkup();
25 private:
26 PackedBoolean instanceMarkup_;
27 PackedBoolean commentDecls_;
28 PackedBoolean markedSections_;
29 PackedBoolean prologMarkup_;
32 inline
33 EventsWanted::EventsWanted()
34 : instanceMarkup_(0), commentDecls_(0), markedSections_(0), prologMarkup_(0)
38 inline
39 Boolean EventsWanted::wantInstanceMarkup() const
41 return instanceMarkup_;
44 inline
45 void EventsWanted::addInstanceMarkup()
47 instanceMarkup_ = 1;
48 commentDecls_ = 1;
49 markedSections_ = 1;
52 inline
53 Boolean EventsWanted::wantCommentDecls() const
55 return commentDecls_;
58 inline
59 void EventsWanted::addCommentDecls()
61 commentDecls_ = 1;
64 inline
65 Boolean EventsWanted::wantMarkedSections() const
67 return markedSections_;
70 inline
71 void EventsWanted::addMarkedSections()
73 markedSections_ = 1;
76 inline
77 Boolean EventsWanted::wantPrologMarkup() const
79 return prologMarkup_;
82 inline
83 void EventsWanted::addPrologMarkup()
85 prologMarkup_ = 1;
88 #ifdef SP_NAMESPACE
90 #endif
92 #endif /* not EventsWanted_INCLUDED */