attribute.h
Go to the documentation of this file.
1 #ifndef ATTRIBUTE_H
2 #define ATTRIBUTE_H
3 
4 /*
5  * attribute.h
6  * Copyright (c) 2016 Georgetown University. All Rights Reserved.
7  */
8 
16 #include <iostream>
17 #include <string>
18 
19 using namespace std;
20 
21 class Attribute {
22 
31  friend ostream &operator<<( ostream &out, const Attribute &a );
32 
33  protected:
34 
36  string name;
37 
44  virtual void print( ostream &out = cout ) const;
45 
46  public:
47 
49  Attribute();
50 
58  Attribute( string name );
59 
66  string getName() const;
67 
74  virtual int getSize() const;
75 
82  void setName( string name );
83 
84 }; // Attribute class
85 
86 #endif
Definition: attribute.h:21
string name
Definition: attribute.h:36
ostream & operator<<(ostream &out, const Attribute &a)
Definition: attribute.cc:31