sdVisitor Class Reference


Public Methods

virtual void visit (const sdLeafValue *object)=0
virtual void visit (const sdHierValue *object)=0
virtual void visit (const sdAttribute *object)=0
virtual void visit (const sdRelationship *object)=0
virtual void visit (const sdRelationshipSet *object)=0
virtual void visit (const sdObject *object)=0
virtual void visit (const sdNameSpace *object)=0

Detailed Description

The sdVisitor class defines the visitor interface class for the OpenAccess schema definition classes. Applications can derive this interface to implement a specific operation on each of the concrete sd classes.

This class uses the visitor design pattern interface, which uses the double dispatch technique to separate the representation from the operation. Each concrete node in the data structure has an accept method, which provides access to a visitor. The accept method sends a message to the visitor that includes the node's class. The visitor can then execute its behavior for that element.


Member Function Documentation

void sdVisitor::visit const sdNameSpace *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdNameSpace class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdObject *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdObject class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdRelationshipSet *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdObject class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdRelationship *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdRelationship class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdAttribute *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdAttribute class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdHierValue *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdHierValue class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.

void sdVisitor::visit const sdLeafValue *    object [pure virtual]
 

This function visits the specified object. This function is called by the accept function on the sdLeafValue class. The sdVisitor class is abstract and must be overriden by the derived visitor class.

Parameters:
object The pointer to the object to visit.


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

Return to top of page