27class PCLR2SonicWCLoader;
75 const std::string &prefix=
"",
76 const std::string &
sep=
" ",
82 const std::string &
sep=
", ",
Project global and OS specific declarations.
#define MLPCLR2SonicWCLoader_EXPORT
DLL export macro definition.
Base class to implement raw data loaders which need byte swapping and basic file access on byte or ra...
ML Module class to load a point cloud from the Point Cloud Library from a file.
Class to read R2Sonic water column sonar data.
MLErrorCode loadWaterColumnPackage(PCLR2SonicWCLoader &updateObject, MLuint64 workMemoryHint=5000000000)
After opening the file this loads all WaterColumnPackages of the file into memory.
void reset()
Closes and resets internals.
~R2SonicWCLoader() override
Destructor.
void open() override
Opens the file if possible, isGood() will return true on success, otherwise false; if byte swapping m...
MLErrorCode loadWaterColumnPackage(MLuint64 &waterColumnDataBaseOffset, WaterColumnDataSet &waterColumnPackage)
Loads a WaterColumnPackage from the file position WaterColumnPackageBaseOffset.
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...
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 ...
const WaterColumnDataSet & getLoadedWaterColumnPackage() const
Returns the read-only pointer to the currently loaded WaterColumnDataSet if there is one or nullptr o...
R2SonicWCLoader()
Default constructor creating an instance with empty fileName and closed loader.
Class describing the common data header of a WaterColumn data package.
MLint32 MLErrorCode
Type of an ML Error code.
Basic binary data loader class.
MLPCLR2SonicWCLoader_EXPORT std::ostream & operator<<(std::ostream &os, const ml::R2SonicWC::R2SonicWCLoader &obj)
Output to std::ostream.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define ML_CLASS_HEADER(className)
Same like ML_CLASS_HEADER_EXPORTED with a non existing export symbol.
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Structures describing the R2Sonic .wc water column data format.