General Purpose Geodetic Library
SgNcdfDimension Class Reference

#include <SgNetCdf.h>

Public Member Functions

 SgNcdfDimension ()
 
 SgNcdfDimension (const QString &name, int n, int id)
 
 SgNcdfDimension (const SgNcdfDimension &d)
 
 ~SgNcdfDimension ()
 
SgNcdfDimensionoperator= (const SgNcdfDimension &d)
 
const QString & getName () const
 
int getN () const
 
int getId () const
 
void setName (const QString &name)
 
void setN (int n)
 
void setId (int id)
 
void debug_output ()
 

Static Public Member Functions

static const QString className ()
 

Private Attributes

QString name_
 
int n_
 
int id_
 

Detailed Description

Definition at line 59 of file SgNetCdf.h.

Constructor & Destructor Documentation

◆ SgNcdfDimension() [1/3]

SgNcdfDimension::SgNcdfDimension ( )
inline

A constructor. Creates a default copy of the object.

Definition at line 68 of file SgNetCdf.h.

References id_, and n_.

◆ SgNcdfDimension() [2/3]

SgNcdfDimension::SgNcdfDimension ( const QString &  name,
int  n,
int  id 
)
inline

Definition at line 70 of file SgNetCdf.h.

References id_, and n_.

◆ SgNcdfDimension() [3/3]

SgNcdfDimension::SgNcdfDimension ( const SgNcdfDimension d)
inline

Definition at line 72 of file SgNetCdf.h.

References getId(), getN(), setId(), and setN().

◆ ~SgNcdfDimension()

SgNcdfDimension::~SgNcdfDimension ( )
inline

A destructor. Destroys the object.

Definition at line 78 of file SgNetCdf.h.

Member Function Documentation

◆ className()

const QString SgNcdfDimension::className ( )
static

Returns name of the class (for debug output).

Definition at line 231 of file SgNetCdf.cpp.

◆ debug_output()

void SgNcdfDimension::debug_output ( )

Definition at line 239 of file SgNetCdf.cpp.

References id_, n_, and name_.

◆ getId()

int SgNcdfDimension::getId ( ) const
inline

Returns value of the dimension Id.

Definition at line 98 of file SgNetCdf.h.

References id_.

Referenced by SgNcdfDimension(), SgNcdfVariable::addDimension(), and operator=().

◆ getN()

int SgNcdfDimension::getN ( ) const
inline

Returns value of the dimension.

Definition at line 94 of file SgNetCdf.h.

References n_.

Referenced by SgNcdfDimension(), SgNcdfVariable::addDimension(), operator=(), SgNetCdf::putData(), and SgNetCdf::registerVariable().

◆ getName()

const QString& SgNcdfDimension::getName ( ) const
inline

◆ operator=()

SgNcdfDimension& SgNcdfDimension::operator= ( const SgNcdfDimension d)
inline

An assignment operator.

Definition at line 85 of file SgNetCdf.h.

References getId(), getN(), getName(), setId(), setN(), and setName().

◆ setId()

void SgNcdfDimension::setId ( int  id)
inline

Definition at line 104 of file SgNetCdf.h.

References id_.

Referenced by SgNcdfDimension(), operator=(), and SgNetCdf::putData().

◆ setN()

void SgNcdfDimension::setN ( int  n)
inline

Definition at line 102 of file SgNetCdf.h.

References n_.

Referenced by SgNcdfDimension(), and operator=().

◆ setName()

void SgNcdfDimension::setName ( const QString &  name)
inline

Definition at line 100 of file SgNetCdf.h.

References name_.

Referenced by operator=().

Member Data Documentation

◆ id_

int SgNcdfDimension::id_
private

Definition at line 118 of file SgNetCdf.h.

Referenced by SgNcdfDimension(), debug_output(), getId(), and setId().

◆ n_

int SgNcdfDimension::n_
private

Definition at line 117 of file SgNetCdf.h.

Referenced by SgNcdfDimension(), debug_output(), getN(), and setN().

◆ name_

QString SgNcdfDimension::name_
private

Definition at line 116 of file SgNetCdf.h.

Referenced by debug_output(), getName(), and setName().


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