rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlXmlAttributeI Class Reference

Interface for XML attributes. More...

#include <ilog/xml.h>

Inheritance diagram for IlXmlAttributeI:
IlXmlNodeI IlXmlAttribute

List of all members.

Public Member Functions

virtual ~IlXmlAttributeI ()
 Destructor.
virtual const char * getName () const =0
 Gets the name of this attribute.
virtual Type getType () const
 Retrieves the type of this element.
virtual const char * getValue () const =0
 Gets the value of this attribute.
virtual void setName (const char *name)
 Sets the name of this attribute.
virtual void setValue (const char *value)
 Sets the value of this attribute.
virtual void storeName (char *name)=0
 Stores the name of this attribute.
virtual void storeValue (char *value)=0
 Stores the value of this attribute.
virtual ostream & write (ostream &stream) const
 Writes the XML code for this attribute.

Detailed Description

Interface for XML attributes.

Library: ilog

This interface defines the entire interface of XML attribute objects. An attribute is a key-pair couple that is stored in an IlXmlElementI.


Constructor & Destructor Documentation

virtual IlXmlAttributeI::~IlXmlAttributeI (  )  [virtual]

Destructor.

The default implementation does nothing.


Member Function Documentation

virtual const char* IlXmlAttributeI::getName (  )  const [pure virtual]

Gets the name of this attribute.

Returns:
The name of this attribute. The returned string must not be deleted or modified.

Implemented in IlXmlAttribute.

virtual Type IlXmlAttributeI::getType (  )  const [virtual]

Retrieves the type of this element.

Returns:
IlXmlNodeI::Attribute.

Implements IlXmlNodeI.

virtual const char* IlXmlAttributeI::getValue (  )  const [pure virtual]

Gets the value of this attribute.

You must provide an implementation of getValue if you create a subclass of IlXmlAttributeI.

Returns:
The value of this attribute. The returned string must not be deleted or modified.

Implemented in IlXmlAttribute.

virtual void IlXmlAttributeI::setName ( const char *  name  )  [virtual]

Sets the name of this attribute.

You must provide an implementation of getName if you create a subclass of IlXmlAttributeI.
The default implementation calls storeName with a copy of the provided string.

Parameters:
name The new name of this attribute. The string is copied.
virtual void IlXmlAttributeI::setValue ( const char *  value  )  [virtual]

Sets the value of this attribute.

The default implementation calls storeValue with a copy of the provided string.

Parameters:
name The new value of this attribute. The string is copied.
virtual void IlXmlAttributeI::storeName ( char *  name  )  [pure virtual]

Stores the name of this attribute.

You must provide an implementation of storeName if you create a subclass of IlXmlAttributeI.

Parameters:
value The new name of this attribute. The string is directly stored in this object. No copy is performed.

Implemented in IlXmlAttribute.

virtual void IlXmlAttributeI::storeValue ( char *  value  )  [pure virtual]

Stores the value of this attribute.

You must provide an implementation of storeValue if you create a subclass of IlXmlAttributeI.

Parameters:
value The new value of this attribute. The string is directly stored in this object. No copy is performed.

Implemented in IlXmlAttribute.

virtual ostream& IlXmlAttributeI::write ( ostream &  stream  )  const [virtual]

Writes the XML code for this attribute.

The default implementation writes the attribute name, followed by an equal (=) sign, followed by the attribute value stored within double quotes (").

Parameters:
stream The output stream where the XML code will be sent.
Returns:
A reference to the provided output stream.

Implements IlXmlNodeI.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.