Isis 3.0
Back | Home
Isis::ControlNetFile Class Referenceabstract

Generic Binary Control Net File Representation. More...

#include <ControlNetFile.h>

Inherited by Isis::ControlNetFileV0001, and Isis::ControlNetFileV0002.

Public Member Functions

 ControlNetFile ()
 Constructor. More...
 
virtual ~ControlNetFile ()
 Destructor. More...
 
virtual void Read (const Pvl &header, const FileName &file)=0
 This reads the binary file into memory. More...
 
virtual void Write (const FileName &file) const =0
 This writes the binary file that is in memory to disk. More...
 
virtual Pvl toPvl () const =0
 Convert the binary representation to Pvl (any pvl version). More...
 

Detailed Description

Generic Binary Control Net File Representation.

This class is the parent for all binary forms of the control network files. Each one must be readable, writable, and convertable to Pvl. Other than that, they can be (and probably will be) literally anything as long as it has a Pvl header.

Author
2011-04-07 Steven Lambright

Constructor & Destructor Documentation

Isis::ControlNetFile::ControlNetFile ( )
inline

Constructor.

No data so this does nothing.

virtual Isis::ControlNetFile::~ControlNetFile ( )
inlinevirtual

Destructor.

No data so this does nothing.

Member Function Documentation

virtual void Isis::ControlNetFile::Read ( const Pvl header,
const FileName file 
)
pure virtual

This reads the binary file into memory.

The header is the Pvl that must be at the top of the file (it's how we could tell it was binary in the first place).

Parameters
headerThe pvl at the top of the file down to the "End" keyword
fileThe filename of the binary file to be read

Implemented in Isis::ControlNetFileV0002, and Isis::ControlNetFileV0001.

virtual Pvl Isis::ControlNetFile::toPvl ( ) const
pure virtual

Convert the binary representation to Pvl (any pvl version).

Implemented in Isis::ControlNetFileV0002, and Isis::ControlNetFileV0001.

virtual void Isis::ControlNetFile::Write ( const FileName file) const
pure virtual

This writes the binary file that is in memory to disk.

The behavior of this method is undefined if the required data is not set (ControlNetVersioner::LatestPvlToBinary guarantees they are, and this should never be called for old versions).

Parameters
fileThe filename of the binary file to be written

Implemented in Isis::ControlNetFileV0002, and Isis::ControlNetFileV0001.


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

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:35:23