Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Interface for XML attributes. More...
#include <ilog/xml.h>
Public Member Functions | |
virtual | ~IlXmlAttributeI () |
Destructor. More... | |
virtual const char * | getName () const =0 |
Gets the name of this attribute. More... | |
virtual Type | getType () const |
Retrieves the type of this element. More... | |
virtual const char * | getValue () const =0 |
Gets the value of this attribute. More... | |
virtual void | setName (const char *name) |
Sets the name of this attribute. More... | |
virtual void | setValue (const char *value) |
Sets the value of this attribute. More... | |
virtual void | storeName (char *name)=0 |
Stores the name of this attribute. More... | |
virtual void | storeValue (char *value)=0 |
Stores the value of this attribute. More... | |
virtual ostream & | write (ostream &stream) const |
Writes the XML code for this attribute. More... | |
Additional Inherited Members | |
Public Types inherited from IlXmlNodeI | |
enum | Type { Attribute, Element, Text, Comment, CData, PI, CharRef, EntityRef } |
The different types of XML nodes. More... | |
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
.
|
virtual |
Destructor.
The default implementation does nothing.
|
pure virtual |
Gets the name of this attribute.
Implemented in IlXmlAttribute.
|
virtual |
|
pure virtual |
Gets the value of this attribute.
You must provide an implementation of getValue
if you create a subclass of IlXmlAttributeI
.
Implemented in IlXmlAttribute.
|
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.
name | The new name of this attribute. The string is copied. |
|
virtual |
Sets the value of this attribute.
The default implementation calls storeValue
with a copy of the provided string.
name | The new value of this attribute. The string is copied. |
|
pure virtual |
Stores the name of this attribute.
You must provide an implementation of storeName
if you create a subclass of IlXmlAttributeI
.
value | The new name of this attribute. The string is directly stored in this object. No copy is performed. |
Implemented in IlXmlAttribute.
|
pure virtual |
Stores the value of this attribute.
You must provide an implementation of storeValue
if you create a subclass of IlXmlAttributeI
.
value | The new value of this attribute. The string is directly stored in this object. No copy is performed. |
Implemented in IlXmlAttribute.
|
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 (").
stream | The output stream where the XML code will be sent. |
Implements IlXmlNodeI.
© 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.