September 28, 2003

Structural Pattern – Façade

“Provide a unified interface to a set of interfaces in a subsystem”

  • Simplifies the use of a subsystem with a large number of classes
  • DataSet in .NET is an example
  • Simple Example:

ds.ReadXml(strFilename)

 

  • Complex Example:

XmlParserContext context(null, nsmgr, null, None);

XmlValidatingReader reader(stream, type, context)

ds.ReadXml(reader)

Links: