![]() |
Doxygen_Assn4
4
91.204 Assignment No.4
|
#include <Attributes.h>
Public Member Functions | |
| Attributes () | |
| Attributes (string key, string value) | |
| virtual | ~Attributes () |
| string | GetKey () const |
| string | GetValue () const |
| void | SetKey (string key) |
| void | SetValue (string value) |
Definition at line 14 of file Attributes.h.
| Attributes::Attributes | ( | ) |
Default constructor
Definition at line 15 of file Attributes.cpp.
| Attributes::Attributes | ( | string | key, |
| string | value | ||
| ) |
A constructor taking two parameters to store an attribute
| key | is type string which is uniquely identified an element |
| value | is also type string which stores the content associated with the key |
Definition at line 18 of file Attributes.cpp.
|
virtual |
Default destructor
Definition at line 23 of file Attributes.cpp.
| string Attributes::GetKey | ( | ) | const |
Get a key of an attribute.
Definition at line 30 of file Attributes.cpp.
| string Attributes::GetValue | ( | ) | const |
Get a value of an attribute.
Definition at line 38 of file Attributes.cpp.
| void Attributes::SetKey | ( | string | key | ) |
Set a key of an attribute.
Definition at line 26 of file Attributes.cpp.
| void Attributes::SetValue | ( | string | value | ) |
Set a value of an attribute.
Definition at line 34 of file Attributes.cpp.
1.8.10