General Purpose Geodetic Library
SgSourceKey Class Reference

#include <SgSourceKey.h>

Public Member Functions

 SgSourceKey ()
 
 SgSourceKey (const QString &key)
 
 ~SgSourceKey ()
 
SgSourceKeyoperator= (const SgSourceKey &srcKey)
 
const QString & getKey () const
 
void setKey (const QString &srcKey)
 

Static Public Member Functions

static const QString className ()
 

Private Attributes

QString key_
 

Detailed Description

===============================================================================================

Definition at line 46 of file SgSourceKey.h.

Constructor & Destructor Documentation

◆ SgSourceKey() [1/2]

SgSourceKey::SgSourceKey ( )
inline

A constructor. Creates a default object.

Definition at line 124 of file SgSourceKey.h.

◆ SgSourceKey() [2/2]

SgSourceKey::SgSourceKey ( const QString &  key)
inline

A constructor. Creates a copy of an object.

Parameters
key– source name from a database file.

Definition at line 131 of file SgSourceKey.h.

References key_.

◆ ~SgSourceKey()

SgSourceKey::~SgSourceKey ( )
inline

A destructor. Frees allocated memory.

Definition at line 139 of file SgSourceKey.h.

Member Function Documentation

◆ className()

const QString SgSourceKey::className ( )
static

Returns name of the class (for debug output).

Definition at line 39 of file SgSourceKey.cpp.

◆ getKey()

const QString & SgSourceKey::getKey ( ) const
inline

Returns a key.

Definition at line 150 of file SgSourceKey.h.

References key_.

◆ operator=()

SgSourceKey& SgSourceKey::operator= ( const SgSourceKey srcKey)
inline

An assignment operator.

◆ setKey()

void SgSourceKey::setKey ( const QString &  srcKey)
inline

Sets a key.

Parameters
srcKey– new key;

Definition at line 158 of file SgSourceKey.h.

References key_.

Member Data Documentation

◆ key_

QString SgSourceKey::key_
private

Definition at line 105 of file SgSourceKey.h.

Referenced by SgSourceKey(), getKey(), and setKey().


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