Poco::XSD::Types

class Visitable

Library: XSD/Types
Package: Visitor
Header: Poco/XSD/Types/Visitable.h

Description

Interface class Visitable, used to implement visitor pattern.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Known Derived Classes: AbstractElementImpl, Any, CollectionContent, Definitions, SimpleRestrictionInlineType, AbstractAttribute, Annotation, AnyAttribute, AbstractGroup, Attribute, AnnotatedObject, AppInfo, ComplexType, AttributeGroup, AttributeContent, Element, InheritanceInfo, ElementImpl, Message, Union, OrderContent, AbstractList, Content, ElementRef, GroupRef, ListTypeRef, Notation, PortType, SimpleRestriction, All, AbstractAttributeGroup, AnnotationContent, AttributeGroupRef, AttributeRef, Binding, Documentation, ElementTypeRef, Group, Operation, Order, Schema, SimpleTypeInheritance, Type, AttributeTypeRef, Choice, List, Sequence, SimpleType, Service

Member Summary

Member Functions: accept, id

Inherited Functions: duplicate, referenceCount, release

Constructors

Visitable

Visitable();

Creates the Visitable.

Visitable

Visitable(
    const std::string & id
);

Creates the Visitable with the given ID.

Destructor

~Visitable virtual

virtual ~Visitable();

Destroys the Visitable.

Member Functions

accept virtual

virtual void accept(
    Visitor & v
) const = 0;

Implements the visitor pattern. Each subclass must implement it as v.visit(*this);

id inline

const std::string & id() const;

Returns the id of the object