File: EventsWanted.h

package info (click to toggle)
jade 1.2.1-43
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,808 kB
  • ctags: 16,989
  • sloc: cpp: 120,657; sh: 10,452; ansic: 8,228; perl: 378; makefile: 296; sed: 5
file content (91 lines) | stat: -rw-r--r-- 1,561 bytes parent folder | download | duplicates (22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Copyright (c) 1994 James Clark
// See the file COPYING for copying permission.

#ifndef EventsWanted_INCLUDED
#define EventsWanted_INCLUDED 1

#include "Boolean.h"

#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif

class SP_API EventsWanted {
public:
  EventsWanted();
  Boolean wantInstanceMarkup() const;
  Boolean wantCommentDecls() const; // in instance
  Boolean wantMarkedSections() const; // in instance
  Boolean wantPrologMarkup() const;
  void addInstanceMarkup();
  void addCommentDecls();
  void addMarkedSections();
  void addPrologMarkup();
private:
  PackedBoolean instanceMarkup_;
  PackedBoolean commentDecls_;
  PackedBoolean markedSections_;
  PackedBoolean prologMarkup_;
};

inline
EventsWanted::EventsWanted()
: instanceMarkup_(0), commentDecls_(0), markedSections_(0), prologMarkup_(0)
{
}

inline
Boolean EventsWanted::wantInstanceMarkup() const
{
  return instanceMarkup_;
}

inline
void EventsWanted::addInstanceMarkup()
{
  instanceMarkup_ = 1;
  commentDecls_ = 1;
  markedSections_ = 1;
}

inline
Boolean EventsWanted::wantCommentDecls() const
{
  return commentDecls_;
}

inline
void EventsWanted::addCommentDecls()
{
  commentDecls_ = 1;
}

inline
Boolean EventsWanted::wantMarkedSections() const
{
  return markedSections_;
}

inline
void EventsWanted::addMarkedSections()
{
  markedSections_ = 1;
}

inline
Boolean EventsWanted::wantPrologMarkup() const
{
  return prologMarkup_;
}

inline
void EventsWanted::addPrologMarkup()
{
  prologMarkup_ = 1;
}

#ifdef SP_NAMESPACE
}
#endif

#endif /* not EventsWanted_INCLUDED */