rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvFeatureAttributeInfo Class Reference

This class is used to store the names and types of map attributes. More...

#include <ilviews/maps/attrprop.h>

List of all members.

Public Member Functions

 IlvFeatureAttributeInfo (IlvInputFile &file)
 Creates a new IlvFeatureAttributeInfo from an IlvInputFile.
 IlvFeatureAttributeInfo (const IlvFeatureAttributeInfo &source)
 Creates a new IlvFeatureAttributeInfo by copying an existing one.
 IlvFeatureAttributeInfo (IlUInt count, const char *const *attributeNames, const IlvMapClassInfo *const *attributeClasses, const IlBoolean *nullable)
 Creates a new IlvFeatureAttributeInfo with the specified attribute names and classes.
IlvFeatureAttributeInfocopy () const
 Copies the property.
const IlvMapClassInfo * getAttributeClass (IlUInt i) const
 Returns the class of the attribute specified by the index i.
const char * getAttributeName (IlUInt i) const
 Returns the name of the attribute specified by the index i.
const IlvMapClassInfo *const * getAttributesClasses () const
 Returns the classes of the attributes.
IlUInt getAttributesCount () const
 Returns the count of attributes.
const char *const * getAttributesNames (IlUInt &count) const
 Returns the names of the attributes.
IlBoolean isNullable (int i) const
 Checks if an attribute is nullable.
void lock ()
 Locks the object.
void unLock ()
 Unlocks the object.
void write (IlvOutputFile &output) const
 Writes the object to an IlvOutputFile.

Detailed Description

This class is used to store the names and types of map attributes.

Library: ilvmaps

It is generally used with an IlvAttributeProperty.


Constructor & Destructor Documentation

IlvFeatureAttributeInfo::IlvFeatureAttributeInfo ( IlUInt  count,
const char *const *  attributeNames,
const IlvMapClassInfo *const *  attributeClasses,
const IlBoolean nullable 
)

Creates a new IlvFeatureAttributeInfo with the specified attribute names and classes.

Parameters:
count The number of attributes.
attributeNames The names of the attributes.
attributeClasses The classes of the attributes.
nullable A Boolean array that takes the IlTrue value for the attributes that can have a null value (these attributes are optional).
IlvFeatureAttributeInfo::IlvFeatureAttributeInfo ( const IlvFeatureAttributeInfo source  ) 

Creates a new IlvFeatureAttributeInfo by copying an existing one.

Parameters:
source The feature attribute info to be copied.
IlvFeatureAttributeInfo::IlvFeatureAttributeInfo ( IlvInputFile file  ) 

Creates a new IlvFeatureAttributeInfo from an IlvInputFile.

Parameters:
input The input file.

Member Function Documentation

IlvFeatureAttributeInfo* IlvFeatureAttributeInfo::copy (  )  const

Copies the property.

Returns:
The copied IlvFeatureAttributeInfo.
const IlvMapClassInfo* IlvFeatureAttributeInfo::getAttributeClass ( IlUInt  i  )  const

Returns the class of the attribute specified by the index i.

Parameters:
i The index of the attribute.
Returns:
The corresponding IlvMapClassInfo.
const char* IlvFeatureAttributeInfo::getAttributeName ( IlUInt  i  )  const

Returns the name of the attribute specified by the index i.

Parameters:
i The index of the attribute.
Returns:
The name of the attribute at index i.
const IlvMapClassInfo* const* IlvFeatureAttributeInfo::getAttributesClasses (  )  const

Returns the classes of the attributes.

Returns:
The array of IlvMapClassInfo.
IlUInt IlvFeatureAttributeInfo::getAttributesCount (  )  const

Returns the count of attributes.

Returns:
The count of attributes.
const char* const* IlvFeatureAttributeInfo::getAttributesNames ( IlUInt count  )  const

Returns the names of the attributes.

Parameters:
count The returned number of attributes.
Returns:
The array of attributes.
IlBoolean IlvFeatureAttributeInfo::isNullable ( int  i  )  const

Checks if an attribute is nullable.

Returns IlTrue if the attribute specified by the index i can have a null value.

Parameters:
i The index of the attribute.
Returns:
IlTrue if the attribute can have a null value, IlFalse otherwise.
void IlvFeatureAttributeInfo::lock (  ) 

Locks the object.

Locks the object by incrementing the lock count.

void IlvFeatureAttributeInfo::unLock (  ) 

Unlocks the object.

Decrements the lock counts and deletes the object when the lock count has fallen to 0.

void IlvFeatureAttributeInfo::write ( IlvOutputFile output  )  const

Writes the object to an IlvOutputFile.

Parameters:
output The output file.
 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.