ROSE
0.9.6a
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
property.h
Go to the documentation of this file.
1
2
#ifndef BDWY_PROPERTY_H
3
#define BDWY_PROPERTY_H
4
5
#include <string>
6
12
class
propertyAnn
:
public
Ann
13
{
14
public
:
15
16
typedef
enum
{
EnumProperty
,
SetProperty
}
propertyKind
;
17
18
protected
:
19
22
std::string
_name
;
23
30
int
_id
;
31
36
bool
_is_enabled
;
37
40
Direction
_direction
;
41
46
propertyKind
_kind
;
47
48
public
:
49
52
propertyAnn
(
const
parserID
*
name
,
53
Direction
direction
,
54
propertyKind
kind
)
55
:
Ann
(name->
line
()),
56
_name
(name->name()),
57
_is_enabled
(true),
58
_direction
(direction),
59
_kind
(kind)
60
{}
61
67
inline
void
set_id
(
int
id
) {
_id
= id; }
68
71
inline
int
get_id
()
const
{
return
_id
; }
72
75
inline
std::string &
name
() {
return
_name
; }
76
inline
const
std::string &
name
()
const
{
return
_name
; }
77
80
inline
bool
is_enabled
()
const
{
return
_is_enabled
; }
81
84
inline
void
disable
() {
_is_enabled
=
false
; }
85
88
inline
void
enable
() {
_is_enabled
=
true
; }
89
92
inline
Direction
direction
()
const
{
return
_direction
; }
93
96
inline
propertyKind
kind
()
const
{
return
_kind
; }
97
};
98
99
#endif
100
rose-edg4x
src
midend
programAnalysis
annotationLanguageParser
property.h
Generated on Mon May 5 2014 17:29:25 for ROSE by
1.8.4