DefaultMetadataCollector Class Reference

(Internal) DefaultMetadataCollector is a class that implements the default MetadataFinder/MetadataElementCollector. More...

#include <librets/DefaultMetadataCollector.h>

Inheritance diagram for DefaultMetadataCollector:

RetsObject MetadataElementCollector MetadataFinder

List of all members.

Public Member Functions

 DefaultMetadataCollector ()
virtual ~DefaultMetadataCollector ()
void AddElement (MetadataElementPtr element)
 Add the metadata element to the list.
MetadataElementListPtr FindByLevel (MetadataElement::MetadataType type, std::string level)
 Find the metadta for a given table/object.
virtual MetadataElementPtr FindByPath (MetadataElement::Type type, std::string level, std::string id)
 Find the metadata for a given table/object by Id.
virtual std::ostream & Print (std::ostream &outputStream) const
 Prints the object in a standard form for debugging and error reporting.
std::string ToString () const
virtual bool Equals (const RetsObject *object) const


Detailed Description

(Internal) DefaultMetadataCollector is a class that implements the default MetadataFinder/MetadataElementCollector.

Constructor & Destructor Documentation

virtual ~DefaultMetadataCollector (  )  [virtual]


Member Function Documentation

void AddElement ( MetadataElementPtr  element  )  [virtual]

Add the metadata element to the list.

Parameters:
element A pointer to the MetadataElemnent to add to the list.

Implements MetadataElementCollector.

virtual bool Equals ( const RetsObject object  )  const [virtual, inherited]

MetadataElementListPtr FindByLevel ( MetadataElement::MetadataType  type,
std::string  level 
) [virtual]

Find the metadta for a given table/object.

Parameters:
type The type of the metadata such as TABLE, SYSTEM, RESOURCE.
level The resource/class of the metadata such as "Property:RES".
Returns:
A pointer to the MetadataElementList containing the metadata.

Implements MetadataFinder.

virtual MetadataElementPtr FindByPath ( MetadataElement::Type  type,
std::string  level,
std::string  id 
) [virtual]

Find the metadata for a given table/object by Id.

Parameters:
type The type of the metadata such as TABLE, SYSTEM, RESOURCE.
level The resource/class of the metadata such as "Property:RES".
id The Id of the specific metadata element to retrieve.
Returns:
A pointer to the MetadataElement containing the metadata.

Implements MetadataFinder.

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

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

Reimplemented from RetsObject.

std::string ToString (  )  const [inherited]


Generated by  doxygen