rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions
IlXmlAttribute Class Reference

Default implementation of XML attributes. More...

#include <ilog/xml.h>

Inheritance diagram for IlXmlAttribute:
IlXmlAttributeI IlXmlNodeI

Public Member Functions

virtual ~IlXmlAttribute ()
 Destructor. More...
 
virtual const char * getName () const
 Gets the name of this attribute. More...
 
virtual const char * getValue () const
 Gets the value of this attribute. More...
 
virtual void storeName (char *)
 Stores the name of this attribute. More...
 
virtual void storeValue (char *name)
 Stores the value of this attribute. More...
 
- Public Member Functions inherited from IlXmlAttributeI
virtual ~IlXmlAttributeI ()
 Destructor. More...
 
virtual Type getType () const
 Retrieves the type of this element. 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 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...
 

Detailed Description

Default implementation of XML attributes.

Library: ilog

This class defines a default implementation of XML attribute objects. It is provided for convenience, so that you can manipulate XML attributes without having to create a subclass from IlXmlAttributeI.
This class actually stores the key-pair values as strings.

Constructor & Destructor Documentation

virtual IlXmlAttribute::~IlXmlAttribute ( )
virtual

Destructor.

The destructor deletes the strings that contain the attribute name and its value.

Member Function Documentation

virtual const char* IlXmlAttribute::getName ( ) const
virtual

Gets the name of this attribute.

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

Implements IlXmlAttributeI.

virtual const char* IlXmlAttribute::getValue ( ) const
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.

Implements IlXmlAttributeI.

virtual void IlXmlAttribute::storeName ( char *  name)
virtual

Stores the name of this attribute.

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

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

Implements IlXmlAttributeI.

virtual void IlXmlAttribute::storeValue ( char *  value)
virtual

Stores the value of this attribute.

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

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

Implements IlXmlAttributeI.


© 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.