rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvStringAttribute Class Reference

This feature attribute stores strings. More...

#include <ilviews/maps/attribute/stringattr.h>

Inheritance diagram for IlvStringAttribute:
IlvFeatureAttribute

List of all members.

Public Member Functions

 IlvStringAttribute (const IlvStringAttribute &source)
 Creates a string attribute by copying an existing one.
 IlvStringAttribute (const char *value, IlBoolean copy=IlTrue)
 Creates a string attribute.
 IlvStringAttribute ()
 Constructor.
virtual IlvFeatureAttributecopy () const
 Copies this object.
const char * getValue () const
 Returns the value of the attribute.
void setValue (const char *value, IlBoolean copy=IlTrue)
 Sets the new string.

Detailed Description

This feature attribute stores strings.

Library: ilvmaps


Constructor & Destructor Documentation

IlvStringAttribute::IlvStringAttribute (  ) 

Constructor.

Creates a string attribute.

IlvStringAttribute::IlvStringAttribute ( const char *  value,
IlBoolean  copy = IlTrue 
)

Creates a string attribute.

Parameters:
value the string to be created.
copy if set to IlTrue, the value passed as argument is copied.
IlvStringAttribute::IlvStringAttribute ( const IlvStringAttribute source  ) 

Creates a string attribute by copying an existing one.

Parameters:
source The object to be copied.

Member Function Documentation

virtual IlvFeatureAttribute* IlvStringAttribute::copy (  )  const [virtual]

Copies this object.

Returns:
A copy of the object.

Implements IlvFeatureAttribute.

const char* IlvStringAttribute::getValue (  )  const

Returns the value of the attribute.

Returns:
The current value or a null pointer if no string is affected by the attribute.
void IlvStringAttribute::setValue ( const char *  value,
IlBoolean  copy = IlTrue 
)

Sets the new string.

The attribute becomes owner of the string.

Parameters:
value The new value.
copy If IlTrue, the value is copied.
 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.