All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::xsd::Annotated Class Reference

A base class for XSD classes that may allow annotation. More...

#include <Annotated.h>

Inheritance diagram for te::xsd::Annotated:
te::xsd::All te::xsd::Any te::xsd::AnyAttribute te::xsd::Attribute te::xsd::AttributeGroup te::xsd::Choice te::xsd::ComplexContent te::xsd::ComplexType te::xsd::Element te::xsd::Extension te::xsd::Field te::xsd::Group te::xsd::IdentityConstraint te::xsd::Import te::xsd::Include te::xsd::Notation te::xsd::Restriction4ComplexContent te::xsd::Restriction4SimpleContent te::xsd::Selector te::xsd::Sequence te::xsd::SimpleContent te::xsd::SimpleType te::xsd::SimpleTypeConstructor

Public Member Functions

AnnotationgetAnnotation () const
 It returns the associated annotation. More...
 
void setAnnotation (Annotation *ann)
 It sets the associated annotation. More...
 

Protected Member Functions

 Annotated (Annotation *ann=0)
 Constructor. More...
 
 Annotated (const Annotated &rhs)
 Copy constructor. More...
 
Annotatedoperator= (const Annotated &rhs)
 Assignment operator. More...
 
 ~Annotated ()
 Destructor. More...
 

Private Attributes

Annotationm_annotation
 Annotation for human reading or machine consumption. (Optional) More...
 

Detailed Description

A base class for XSD classes that may allow annotation.

See also
Annotation, Attribute

Definition at line 49 of file Annotated.h.

Constructor & Destructor Documentation

te::xsd::Annotated::Annotated ( Annotation ann = 0)
protected

Constructor.

Parameters
annThe annotation to be associated to the object.
Note
The Annotation object will take the ownership of the informed pointer.

Definition at line 41 of file Annotated.cpp.

te::xsd::Annotated::Annotated ( const Annotated rhs)
protected

Copy constructor.

Parameters
rhsRight-hand-side object.

Definition at line 46 of file Annotated.cpp.

References m_annotation.

te::xsd::Annotated::~Annotated ( )
protected

Destructor.

Definition at line 52 of file Annotated.cpp.

Member Function Documentation

te::xsd::Annotation * te::xsd::Annotated::getAnnotation ( ) const

It returns the associated annotation.

Returns
The associated annotation.

Definition at line 30 of file Annotated.cpp.

References m_annotation.

void te::xsd::Annotated::setAnnotation ( Annotation ann)

It sets the associated annotation.

Parameters
annThe annotation to be associated to the object. The annotated class will take the ownership of the given pointer.

Definition at line 35 of file Annotated.cpp.

Referenced by te::xsd::serialize::ReadAnnotated().

Member Data Documentation

Annotation* te::xsd::Annotated::m_annotation
private

Annotation for human reading or machine consumption. (Optional)

Definition at line 99 of file Annotated.h.

Referenced by Annotated(), getAnnotation(), and operator=().


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