ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KeepAttribute.h
Go to the documentation of this file.
1 #ifndef KEEPATTRIBUTE_IS_DEFINED
2 #define KEEPATTRIBUTE_IS_DEFINED
3 
4 
5 
9 class KeepAttribute : public AstAttribute{
10 
11  public:
12  KeepAttribute(bool k):keep(k){}
13 
14  void setAttribute(bool b){ keep = b; }
15  bool getAttribute(){ return keep;}
16  void operator << (const char* a) {printf("The keep attribute: %s",a); }
17 
18  private:
19  bool keep;
20 
21 };
22 
23 #endif