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)
 Initializes a new instance of IlvCADRGTocReader and reads the table of contents. 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 frames that are located in the LEGEND directory. More...
 
const IlvCADRGFrame *const * getOverviewFrames (IlUShort &count) const
 Returns the 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::IlvCADRGTocReader ( const char *  fileName)

Initializes a new instance of IlvCADRGTocReader and reads the table of contents.

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

Member Function Documentation

§ FormatError()

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.

§ getCoverages()

const IlvCADRGCoverage* const* IlvCADRGTocReader::getCoverages ( IlUShort count) const

Returns the coverages of the CADRG database.

Parameters
countIs set on return to the number of coverages declared in the table of contents file opened by the reader.
Returns
An array of count coverages. This array must not be deleted nor modified.

§ getInitStatus()

IlvMapsError IlvCADRGTocReader::getInitStatus ( ) const

Returns the init status of the reader.

Returns
IlvMaps::NoError() in the case of a correct initialization. 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.

§ getLegendFrames()

const IlvCADRGFrame* const* IlvCADRGTocReader::getLegendFrames ( IlUShort count) const

Returns the frames that are located in the LEGEND directory.

Parameters
countIs set on return to the number of legend frames declared in the table of contents file opened by the reader.
Returns
An array of count frames. This array must not be deleted nor modified.

§ getOverviewFrames()

const IlvCADRGFrame* const* IlvCADRGTocReader::getOverviewFrames ( IlUShort count) const

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

Parameters
countIs set on return to the number of overview frames declared in the table of contents file opened by the reader.
Returns
An array of count overview frames. This array must not be deleted nor modified.

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