Doxygen_Assn4  4
91.204 Assignment No.4
Public Member Functions | List of all members
Attributes Class Reference

#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)
 

Detailed Description

Definition at line 14 of file Attributes.h.

Constructor & Destructor Documentation

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

Parameters
keyis type string which is uniquely identified an element
valueis also type string which stores the content associated with the key

Definition at line 18 of file Attributes.cpp.

Attributes::~Attributes ( )
virtual

Default destructor

Definition at line 23 of file Attributes.cpp.

Member Function Documentation

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.


The documentation for this class was generated from the following files: