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 a new 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... | |
IlvS57Enumeration * | operator[] (IlInt index) |
Returns an enumeration. More... | |
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.
IlvS57Enumeration
. 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.
ascii | The ascii value of the enumeration. |
value | The integer value of the enumeration. |
label | The label of the enumeration. |
show | The 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.
enumeration | The enumeration. |
IlInt IlvS57EnumerationArray::count | ( | ) |
Returns the number of enumerations.
IlvS57Enumeration* IlvS57EnumerationArray::operator[] | ( | IlInt | index | ) |
Returns an enumeration.
index | The enumeration index which starts at 0 . |
0
.