rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

List of all members | Public Member Functions | Static Public Member Functions
IlvCADRGTocReader Class Reference

This class reads the table of contents of a CADRG file. More...

#include <ilviews/maps/format/cadrg/cadrgtoc.h>

Public Member Functions

 IlvCADRGTocReader (const char *fileName)
 Constructor. More...
 
const IlvCADRGCoverage *const * getCoverages (IlUShort &count) const
 Returns the coverages of the CADRG database. More...
 
IlvMapsError getInitStatus () const
 Returns the init status of the reader. More...
 
const IlvCADRGFrame *const * getLegendFrames (IlUShort &count) const
 Returns the list of the frames that are located in the LEGEND directory. More...
 
const IlvCADRGFrame *const * getOverviewFrames (IlUShort &count) const
 Returns the list of overview frames that are located in the CADRG main directory. More...
 

Static Public Member Functions

static IlvMapsError FormatError ()
 Returns the error code used if there is a format error. More...
 

Detailed Description

This class reads the table of contents of a CADRG file.

Library: ilvmaps

The table of contents is usually located in a directory called CADRG/RPF and is named A.TOC. The table of contents of the CADRG product contains information about the CADRG coverages stored in the data base.

Constructor & Destructor Documentation

IlvCADRGTocReader::IlvCADRGTocReader ( const char *  fileName)

Constructor.

Initializes an instance of IlvCADRGTocReader and reads the table of contents.

Parameters
fileNameThe name of the file containing the CADRG table of contents.

Member Function Documentation

static IlvMapsError IlvCADRGTocReader::FormatError ( )
static

Returns the error code used if there is a format error.

Returns
The error code returned by getInitStatus() if there is a format error.
const IlvCADRGCoverage* const* IlvCADRGTocReader::getCoverages ( IlUShort count) const

Returns the coverages of the CADRG database.

Parameters
countThis parameter is set to the number of coverages declared in the table of contents file opened by the reader.
Returns
An array of count IlvCADRGCoverage that should not be deleted nor modified.
IlvMapsError IlvCADRGTocReader::getInitStatus ( ) const

Returns the init status of the reader.

Returns
In the case of a correct initialization, the function returns IlvMaps::NoError(). Otherwise, it can return one of the errors of the IlvMapInput class, or IlvCADRGTocReader::FormatError if the opened file is not a CADRG table of contents.
const IlvCADRGFrame* const* IlvCADRGTocReader::getLegendFrames ( IlUShort count) const

Returns the list of the frames that are located in the LEGEND directory.

Parameters
countThis parameter is set to the number of legend frames declared in the table of contents file opened by the reader.
Returns
An array of count IlvCADRGFrame that should not be deleted nor modified.
const IlvCADRGFrame* const* IlvCADRGTocReader::getOverviewFrames ( IlUShort count) const

Returns the list of overview frames that are located in the CADRG main directory.

Parameters
countThis parameter is set to the number of overview frames declared in the table of contents file opened by the reader.
Returns
An array of count IlvCADRGFrame that should not be deleted nor modified.

© 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.