rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Member Functions
IlvS57EnumerationArray Class Reference

This class is used to store a set of S57 enumeration objects. More...

#include <ilviews/maps/format/s57/s57enum.h>

Public Member Functions

 IlvS57EnumerationArray ()
 Initializes an instance of the array.
 
void add (const char *ascii, IlInt value, const char *label, IlBoolean show=IlTrue)
 Adds an enumeration. More...
 
void add (IlvS57Enumeration *enumeration)
 Adds an enumeration. More...
 
IlInt count ()
 Returns the number of enumerations. More...
 
IlvS57Enumerationoperator[] (IlInt index)
 Returns an enumeration. More...
 

Detailed Description

This class is used to store a set of S57 enumeration objects.

Library: ilvmaps

This class is used to store IlvS57Enumeration objects. Each IlvS57Enumeration object is locked when it is added to an object of this class. And unlocked when the array is deleted.

See Also
IlvS57Enumeration

Member Function Documentation

void IlvS57EnumerationArray::add ( const char *  ascii,
IlInt  value,
const char *  label,
IlBoolean  show = IlTrue 
)

Adds an enumeration.

Creates an enumeration using the given parameters before adding it to the array. The created enumeration is locked.

Parameters
asciiThe ascii value of the enumeration.
valueThe integer value of the enumeration.
labelThe label of the enumeration.
showThe visibility of the enumeration.
void IlvS57EnumerationArray::add ( IlvS57Enumeration enumeration)

Adds an enumeration.

Adds an enumeration to the array. The enumeration is locked by the array.

Parameters
enumerationThe enumeration.
IlInt IlvS57EnumerationArray::count ( )

Returns the number of enumerations.

Returns
The number of enumerations.
IlvS57Enumeration* IlvS57EnumerationArray::operator[] ( IlInt  index)

Returns an enumeration.

Parameters
indexThe enumeration index which starts at 0.
Returns
The enumeration if the index is valid otherwise returns 0.

© Copyright 2015, 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.