Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Interface for XML attributes. More...
#include <ilog/xml.h>
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. |
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 IlXmlAttributeI::~IlXmlAttributeI | ( | ) | [virtual] |
Destructor.
The default implementation does nothing.
virtual const char* IlXmlAttributeI::getName | ( | ) | const [pure virtual] |
Gets the name of this attribute.
Implemented in IlXmlAttribute.
virtual Type IlXmlAttributeI::getType | ( | ) | const [virtual] |
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
.
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.
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.
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
.
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
.
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 (").
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.