rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlXmlAttribute Class Reference

Default implementation of XML attributes. More...

#include <ilog/xml.h>

Inheritance diagram for IlXmlAttribute:
IlXmlAttributeI IlXmlNodeI

List of all members.

Public Member Functions

virtual ~IlXmlAttribute ()
 Destructor.
virtual const char * getName () const
 Gets the name of this attribute.
virtual const char * getValue () const
 Gets the value of this attribute.
virtual void storeName (char *)
 Stores the name of this attribute.
virtual void storeValue (char *name)
 Stores the value of this attribute.

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:
value The 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:
value The new value of this attribute. The string is directly stored in this object. No copy is performed.

Implements IlXmlAttributeI.

 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.