pipObjectGetAttributeCount - spatial_geostan - 2024.00

Spatial+ Reference for Windows, UNIX/Linux, z/OS

Product type
Software
Portfolio
Locate
Product family
GeoStan Geocoding Suite
Product
GeoStan Geocoding Suite > Spatial+
Version
2024.00
Language
English
Product name
Spatial+
Title
Spatial+ Reference for Windows, UNIX/Linux, z/OS
Copyright
2024
First publish date
1994
Last updated
2024-05-07
Published on
2024-05-07T22:16:04.316305

Returns the number of attributes present in the associated GSA

FILE.

Syntax

intl pipObjectGetAttributeCount ( pipObjectFile obj_h, intl * attr_count);

Arguments

obj_h The file handle of the opened object file. Input.

*attr_count The number of fields in the opened attribute (GSA) file. Output.

Return Value

Number of fields in ObjectFile. If a GSA file does not exist, a PIP_ERROR is returned and

attr_count is set to zero.

Prerequisites

pipObjectFileOpen

Alternates

None.

Example

intl count;

if( pipObjectGetAttributeCount( hGsb, &count ) == PIP_OK )

{

for( intl i = 0; i < count; i++ )

{

pipAttributeInfoStruct info;

pipObjectGetAttributeInfoByNumber( hGsb, i, &info );

}

}