|
Assignment_4_Doxygen_DavidLordan
2
Doxygen API for Assignment 4
|
#include <Attribute.h>
Public Member Functions | |
| Attribute () | |
| Attribute (const Attribute &orig) | |
| virtual | ~Attribute () |
| Attribute (string newName, string newValue) | |
| void | setAttName (string newName) |
| void | setAttValue (string newValue) |
| string | getAttName () |
| string | getAttValue () |
Private Attributes | |
| string | name |
| string | value |
Definition at line 21 of file Attribute.h.
| Attribute::Attribute | ( | ) |
Default attribute constructor. Sets the attribute name and value to empty strings.
Definition at line 19 of file Attribute.cpp.
| Attribute::Attribute | ( | const Attribute & | orig | ) |
Standard copy constructor supplied by Net-Beans.
| orig | - Another attribute object who's variables are used for the new object. |
Definition at line 28 of file Attribute.cpp.
|
virtual |
Basic object destructor supplied by Net-Beans.
Definition at line 35 of file Attribute.cpp.
| Attribute::Attribute | ( | string | newName, |
| string | newValue | ||
| ) |
Custom constructor. Sets the attribute name and value to the passed parameters. Called whenever a new attribute object is created.
| newName | - The name extracted from an XML element opening tag. |
| newValue | - The value extracted from an XML element opening tag. |
Definition at line 44 of file Attribute.cpp.
| string Attribute::getAttName | ( | ) |
Standard getter for the attribute name. Used when displaying the element tree.
Definition at line 53 of file Attribute.cpp.
| string Attribute::getAttValue | ( | ) |
Standard getter for the attribute value. Used when displaying the element tree.
Definition at line 61 of file Attribute.cpp.
| void Attribute::setAttName | ( | string | newName | ) |
Standard setter for the attribute name. Called in the custom attribute constructor.
| newName | - Extracted attribute name from an XML element opening tag. |
Definition at line 69 of file Attribute.cpp.
| void Attribute::setAttValue | ( | string | newValue | ) |
Standard setter for the attribute value. Called in the custom attribute constructor.
| newValue | - Extracted attribute value from an XML element opening tag. |
Definition at line 77 of file Attribute.cpp.
|
private |
The attribute name that is extracted from the XML element opening tag.
Definition at line 75 of file Attribute.h.
|
private |
The attribute value that is extracted from the XML element opening tag.
Definition at line 78 of file Attribute.h.
1.8.8