RetsXmlAttribute Class Reference

(Internal) RetsXmlAttribute is a class that contains an XML attribute and value. More...

#include <librets/RetsXmlAttribute.h>

Inheritance diagram for RetsXmlAttribute:

RetsObject

List of all members.

Public Member Functions

 RetsXmlAttribute (std::string name, std::string value)
 Construct the attribute with the name and value.
std::string GetName () const
 Returns the name of the attribute.
std::string GetValue () const
 Returns the value associated with the attribute.
virtual std::ostream & Print (std::ostream &outputStream) const
 Prints the attribute and value in a standard form for debugging and error reporting.
virtual bool Equals (const RetsObject *rhs) const
 Checks to see if the attribute and value are identical between two RetsXmlAttribute objects.
std::string ToString () const


Detailed Description

(Internal) RetsXmlAttribute is a class that contains an XML attribute and value.

Constructor & Destructor Documentation

RetsXmlAttribute ( std::string  name,
std::string  value 
)

Construct the attribute with the name and value.

Parameters:
name The name tag
value The value associated with the attribute.


Member Function Documentation

virtual bool Equals ( const RetsObject rhs  )  const [virtual]

Checks to see if the attribute and value are identical between two RetsXmlAttribute objects.

Returns:
TRUE if the name and value for both attributes matches.

Reimplemented from RetsObject.

std::string GetName (  )  const

Returns the name of the attribute.

Returns:
string containing the name of the attribute.

std::string GetValue (  )  const

Returns the value associated with the attribute.

Returns:
string containing the value of the attribute.

virtual std::ostream& Print ( std::ostream &  outputStream  )  const [virtual]

Prints the attribute and value in a standard form for debugging and error reporting.

Reimplemented from RetsObject.

std::string ToString (  )  const [inherited]


Generated by  doxygen