|
| | R2SonicWCLoader () |
| | Default constructor creating an instance with empty fileName and closed loader.
|
| |
| void | open () override |
| | Opens the file if possible, isGood() will return true on success, otherwise false; if byte swapping may be required in file format then derived classes should overwrite this method and call _setNeedsByteSwapping() to make get*BitUWordInLocalEndianess() methods work correctly.
|
| |
| MLErrorCode | loadWaterColumnPackage (PCLR2SonicWCLoader &updateObject, MLuint64 workMemoryHint=5000000000) |
| | After opening the file this loads all WaterColumnPackages of the file into memory.
|
| |
| | ~R2SonicWCLoader () override |
| | Destructor.
|
| |
| void | reset () |
| | Closes and resets internals.
|
| |
| std::string | getStringDump (const MLint maxPackets=-1, const MLint maxBeams=-1, const MLint maxSamplesPerBeam=-1, const std::string &prefix="", const std::string &sep=" ", const bool showFirstOfEachPacketTypeOnly=false) const |
| | Convert content to a human readable string with the prefix prefix before all lines and separator sep between subcomponents.
|
| |
| virtual std::string | getAsString (const std::string &prefix="", const std::string &sep=", ", const size_t maxNumBinaryEntries=8, const size_t maxNumStringEntries=20) const override |
| | Default implementation of virtual base class method which uses getStringDump with maxNumBinaryEntries for maxPackets, maxBeams, and maxSamplesPerBeam.
|
| |
| const WaterColumnDataSet & | getLoadedWaterColumnPackage () const |
| | Returns the read-only pointer to the currently loaded WaterColumnDataSet if there is one or nullptr otherwise.
|
| |
| | ByteDataReader () |
| | Default constructor which gets its settings later.
|
| |
| | ByteDataReader (const std::string &fileName) |
| | Constructor already setting the file name.
|
| |
| virtual | ~ByteDataReader () |
| | Destructor (automatically closes the current open file if there is any and clear allocated subimage data).
|
| |
| virtual std::string | getFileName () const |
| | Returns the currently used file name or "" on default case.
|
| |
| virtual void | setFileName (const std::string &fileName) |
| | Sets the new file name.
|
| |
| virtual bool | isOpen () const |
| | Returns true if the file is open, otherwise false.
|
| |
| virtual void | close () |
| | Closes the file if it was open, otherwise the call is ignored.
|
| |
| virtual bool | isGood () const |
| | Returns true if the recent operations since the last clearState() call were successful.
|
| |
| virtual std::string | getErrorState () const |
| | Returns the current state string which is non empty on any error, empty otherwise.
|
| |
| virtual void | clearErrorState () |
| | Resets the error state to success, i.e. to an empty string.
|
| |
| virtual void | setIndent (const std::string &indent) |
| | Sets the default indentation string for tag dumps.
|
| |
| virtual const std::string & | getIndent () const |
| | The default indentation string for tag dumps.
|
| |
| bool | needsByteSwapping () const |
| | Returns true if raw file data needs byte swapping, otherwise false; needs to be set with _setNeedsByteSwapping when opening the file in derived classes.
|
| |
| virtual void | prefetch () |
| | Loads all file content into memory to avoid expensive file descriptor access on each get*Word call.
|
| |
| virtual const MLuint8 * | getPrefetchData () const |
| | Returns pointer to prefetch data (or nullptr if not available).
|
| |
| virtual void | clearPrefetchData () |
| | If any data is in the prefetch data memory then it is freed.
|
| |
| MLuint8 | get8BitUWord (MLuint64 pos) const |
| | Read an unsigned 8 bit word from position pos.
|
| |
| MLuint16 | get16BitUWord (MLuint64 pos) const |
| | Read an unsigned 16 bit word from position pos.
|
| |
| MLuint16 | get16BitUWordInLocalEndianess (MLuint64 pos) const |
| | Read an unsigned 16 bit word from position pos and convert it in local endianness.
|
| |
| MLuint32 | get32BitUWord (MLuint64 pos) const |
| | Read an unsigned 32 bit word from position pos.
|
| |
| MLuint32 | get32BitUWordInLocalEndianess (MLuint64 pos) const |
| | Read an unsigned 32 bit word from position pos and convert it in local endianness.
|
| |
| MLuint64 | get64BitUWord (MLuint64 pos) const |
| | Read an unsigned 64 bit word from position pos.
|
| |
| MLuint64 | get64BitUWordInLocalEndianess (MLuint64 pos) const |
| | Read an unsigned 64 bit word from position pos and convert it in local endianness.
|
| |
| std::string | getNonTerminatedDataAsString (MLuint originPosition, MLuint numChars) const |
| | Return a non-null terminated data area starting at position originPosition of length numChars as std::string.
|
| |
| MLuint8 * | getDataChunk (MLuint64 pos, MLuint64 numBytes) const |
| | Reads numBytes from position pos in the file and returns it as allocated data chunk which has to be freed with MLFree().
|
| |
| const MLuint8 * | getPrefetchDataChunk (MLuint64 pos, MLuint64 numBytes) const |
| | Returns a data pointer to position pos with size numBytes in the prefetch data if available and if chunk size is sufficient.
|
| |
| MLint | getFileSizeFromCurrentDescriptor () |
| | Returns MLFileGetSizeFromDescriptor(_getFileDescriptor()).
|
| |
| void | appendStringToState (const std::string &errDesc) const |
| | Appends the given string to error state string (which also sets bad read state).
|
| |
Class to read R2Sonic water column sonar data.
Definition at line 33 of file mlR2SonicWCLoader.h.