Isis 3 Programmer Reference
Isis::OriginalLabel Class Reference

Read and store original labels. More...

#include <OriginalLabel.h>

Collaboration diagram for Isis::OriginalLabel:
Collaboration graph

Public Member Functions

 OriginalLabel ()
 Constructor for creating an original blob with a given name.
 
 OriginalLabel (const QString &file)
 Constructor for creating an original blob with a given name and file to read labels from.
 
 OriginalLabel (Isis::Blob &blob)
 Constructor for creating an original label from a blob object.
 
 OriginalLabel (Pvl pvl)
 Constructor for creating an original blob with a given name and Pvl container.
 
Pvl ReturnLabels () const
 Returns the labels in a Pvl object.
 
Isis::Blob toBlob ()
 Serialize the OriginalLabel data to a Blob.
 

Protected Member Functions

void WriteInit ()
 

Private Member Functions

void fromBlob (Isis::Blob blob)
 Initialize the OriginalLabel from a Blob.
 

Private Attributes

Pvl m_originalLabel
 

Detailed Description

Read and store original labels.

This class provides a means to read and store the labels from the original source. The labels can be retreived in a Pvl object.

Author
2006-02-23 Robert Wallace and Brian Lipkowitz
History

2006-06-13 Brendan George - Modified to throw error when called file does not contain an Original Label

2006-12-11 Kris Becker - Fixed bug in WriteInit method using a temporary string to reference a char pointer to its contents. The string remain after the reference or its toast.

2008-06-18 Steven Koechle - Fixed Documentation Errors

Definition at line 35 of file OriginalLabel.h.

Constructor & Destructor Documentation

◆ OriginalLabel() [1/4]

Isis::OriginalLabel::OriginalLabel ( )

Constructor for creating an original blob with a given name.

Definition at line 19 of file OriginalLabel.cpp.

References Isis::Pvl::setTerminator().

◆ OriginalLabel() [2/4]

Isis::OriginalLabel::OriginalLabel ( const QString & file)

Constructor for creating an original blob with a given name and file to read labels from.

Parameters
fileFile to read labels from

Definition at line 38 of file OriginalLabel.cpp.

References fromBlob().

◆ OriginalLabel() [3/4]

Isis::OriginalLabel::OriginalLabel ( Isis::Blob & blob)

Constructor for creating an original label from a blob object.

Definition at line 27 of file OriginalLabel.cpp.

References fromBlob().

◆ OriginalLabel() [4/4]

Isis::OriginalLabel::OriginalLabel ( Pvl pvl)

Constructor for creating an original blob with a given name and Pvl container.

Parameters
pvlPvl containing labels of the source

Definition at line 51 of file OriginalLabel.cpp.

◆ ~OriginalLabel()

Isis::OriginalLabel::~OriginalLabel ( )

Definition at line 56 of file OriginalLabel.cpp.

Member Function Documentation

◆ fromBlob()

void Isis::OriginalLabel::fromBlob ( Isis::Blob blob)
private

Initialize the OriginalLabel from a Blob.

Parameters
blobThe Blob to extract data from

Definition at line 65 of file OriginalLabel.cpp.

Referenced by OriginalLabel(), and OriginalLabel().

◆ ReturnLabels()

Pvl Isis::OriginalLabel::ReturnLabels ( ) const

Returns the labels in a Pvl object.

Returns
(Isis::Pvl) original labels

Definition at line 97 of file OriginalLabel.cpp.

◆ toBlob()

Isis::Blob Isis::OriginalLabel::toBlob ( )

Serialize the OriginalLabel data to a Blob.

Returns
Blob

Definition at line 82 of file OriginalLabel.cpp.

Member Data Documentation

◆ m_originalLabel

Pvl Isis::OriginalLabel::m_originalLabel
private

Definition at line 53 of file OriginalLabel.h.


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