|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef CubeBsqHandler_h
2 #define CubeBsqHandler_h
44 const Pvl &label,
bool alreadyOnDisk);
70 int findGoodSize(
int maxSize,
int dimensionSize)
const;
int SizeOf(Isis::PixelType pixelType)
Returns the number of bytes of the specified PixelType.
Definition: PixelType.h:46
A section of raw data on the disk.
Definition: RawCubeChunk.h:27
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
Contains Pvl Groups and Pvl Objects.
Definition: PvlObject.h:61
A single keyword-value pair.
Definition: PvlKeyword.h:82
int sampleCount() const
Definition: CubeIoHandler.cpp:596
PixelType pixelType() const
Definition: CubeIoHandler.cpp:587
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
BigInt getBytesPerChunk() const
Definition: CubeIoHandler.cpp:486
Container for cube-like labels.
Definition: Pvl.h:119
QByteArray & getRawData() const
Definition: RawCubeChunk.h:38
QFile * getDataFile()
Definition: CubeIoHandler.cpp:562
void updateLabels(Pvl &labels)
Function to update the labels with a Pvl object.
Definition: CubeBsqHandler.cpp:68
int getByteCount() const
Definition: RawCubeChunk.cpp:154
virtual void writeRaw(const RawCubeChunk &chunkToWrite)
This needs to write the chunkToWrite directly to disk with no modifications to the data itself.
Definition: CubeBsqHandler.cpp:100
int lineCount() const
Definition: CubeIoHandler.cpp:571
BigInt getDataStartByte() const
Definition: CubeIoHandler.cpp:551
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Handles converting buffers to and from disk.
Definition: CubeIoHandler.h:109
long long int BigInt
Big int.
Definition: Constants.h:49
PvlObjectIterator findObject(const QString &name, PvlObjectIterator beg, PvlObjectIterator end)
Find the index of object with a specified name, between two indexes.
Definition: PvlObject.h:274
int getChunkIndex(const RawCubeChunk &) const
Given a chunk, what's its index in the file.
Definition: CubeIoHandler.cpp:530
Isis exception class.
Definition: IException.h:91
void setRawData(QByteArray rawData)
Sets the chunk's raw data.
Definition: RawCubeChunk.cpp:101
Namespace for the standard library.
@ Replace
Definition: PvlContainer.h:95
virtual void readRaw(RawCubeChunk &chunkToFill)
This needs to populate the chunkToFill with unswapped raw bytes from the disk.
Definition: CubeBsqHandler.cpp:75
void clearCache(bool blockForWriteCache=true) const
Free all cube chunks (cached cube data) from memory and write them to disk.
Definition: CubeIoHandler.cpp:383
CubeBsqHandler(QFile *dataFile, const QList< int > *virtualBandList, const Pvl &label, bool alreadyOnDisk)
Construct a BSQ IO handler.
Definition: CubeBsqHandler.cpp:34
Adds specific functionality to C++ strings.
Definition: IString.h:165
IO Handler for Isis Cubes using the BSQ format.
Definition: CubeBsqHandler.h:41
void setChunkSizes(int numSamples, int numLines, int numBands)
This should be called once from the child constructor.
Definition: CubeIoHandler.cpp:621
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
~CubeBsqHandler()
The destructor writes all cached data to disk.
Definition: CubeBsqHandler.cpp:58