GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
GDALEDTComponent Class Reference

Class for a component of a compound extended data type. More...

`#include <gdal_priv.h>`

## Public Member Functions
| GDALEDTComponent (const std::string &name, size_t offset, const GDALExtendedDataType &type)
| constructor of a GDALEDTComponent More...
| GDALEDTComponent (const GDALEDTComponent &)
| Copy constructor. More...
bool | operator== (const GDALEDTComponent &) const
| Equality operator.
const std::string & | GetName () const
| Return the name. More...
size_t | GetOffset () const
| Return the offset (in bytes) of the component in the compound data type. More...
const GDALExtendedDataType & | GetType () const
| Return the data type of the component. More...

## Detailed Description

Class for a component of a compound extended data type.

Since
  GDAL 3.1

## Constructor & Destructor Documentation

GDALEDTComponent::GDALEDTComponent | ( | const std::string & | name,
|  | size_t | offset,
|  | const GDALExtendedDataType & | type
| ) |  |

constructor of a GDALEDTComponent

This is the same as the C function GDALEDTComponendCreate()

Parameters

  name | Component name
  offset | Offset in byte of the component in the compound data type. In case of nesting of compound data type, this should be the offset to the immediate belonging data type, not to the higher level one.
  type | Component data type.

GDALEDTComponent::GDALEDTComponent | ( | const GDALEDTComponent & |  | ) |
| default

Copy constructor.

## Member Function Documentation

const std::string& GDALEDTComponent::GetName | ( |  | ) | const
| inline

Return the name.

This is the same as the C function GDALEDTComponentGetName().

size_t GDALEDTComponent::GetOffset | ( |  | ) | const
| inline

Return the offset (in bytes) of the component in the compound data type.

This is the same as the C function GDALEDTComponentGetOffset().

const GDALExtendedDataType& GDALEDTComponent::GetType | ( |  | ) | const
| inline

Return the data type of the component.

This is the same as the C function GDALEDTComponentGetType().

The documentation for this class was generated from the following files:

- gdal_priv.h
- gdalmultidim.cpp