Isis 3 Programmer Reference
CubeBsqHandler.h
Go to the documentation of this file.
1 
23 #ifndef CubeBsqHandler_h
24 #define CubeBsqHandler_h
25 
26 #include "CubeIoHandler.h"
27 
28 namespace Isis {
57  class CubeBsqHandler : public CubeIoHandler {
58  public:
59  CubeBsqHandler(QFile * dataFile, const QList<int> *virtualBandList,
60  const Pvl &label, bool alreadyOnDisk);
62 
63  void updateLabels(Pvl &labels);
64 
65  protected:
66  virtual void readRaw(RawCubeChunk &chunkToFill);
67  virtual void writeRaw(const RawCubeChunk &chunkToWrite);
68 
69  private:
75  CubeBsqHandler(const CubeBsqHandler &other);
76 
85 
86  int findGoodSize(int maxSize, int dimensionSize) const;
87  BigInt getChunkStartByte(const RawCubeChunk &chunk) const;
88  };
89 }
90 
91 #endif
long long int BigInt
Big int.
Definition: Constants.h:65
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.
IO Handler for Isis Cubes using the BSQ format.
~CubeBsqHandler()
The destructor writes all cached data to disk.
Handles converting buffers to and from disk.
void updateLabels(Pvl &labels)
Function to update the labels with a Pvl object.
A section of raw data on the disk.
Definition: RawCubeChunk.h:42
CubeBsqHandler & operator=(const CubeBsqHandler &other)
Disallow assignments of this object.
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself...
Container for cube-like labels.
Definition: Pvl.h:135
BigInt getChunkStartByte(const RawCubeChunk &chunk) const
This is a helper method that goes from chunk to file position.
CubeBsqHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a BSQ IO handler.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
int findGoodSize(int maxSize, int dimensionSize) const
This method attempts to compute a good chunk line size.