DatalogDownloader
DatalogDownloader

Used to download logged data from a WirelessNode.

DatalogDownloader
explicit DatalogDownloader(
const WirelessNode &node
)

Creates a DatalogDownloader object. Datalogging information will immediately be read from the Node.

Parameters
node

The WirelessNode to download the data from.

Exceptions
complete
bool complete()

Checks if all of the data has been downloaded (no more data available).

Returns

true if all the data has been downloaded, false if there is still more data to download.

getNextData
LoggedDataSweep getNextData()

Gets the next LoggedDataSweep that is logged to the Node.

Returns

A LoggedDataSweep containing the next data sweep that was logged to the Node.

Exceptions
startOfSession
bool startOfSession()

Gets whether a new datalogging session has been found (after calling getNextData).  This will be true for a single LoggedDataSweep, signifying that all of the DatalogDownloader's info has been updated with new information (sample rate, session index, etc.) about this sweep.

Returns

true if a new datalogging session has been found, false otherwise.

triggerType
WirelessTypes::TriggerType triggerType()

Gets the WirelessTypes::TriggerType of the current datalogging session.

Returns

The WirelessTypes::TriggerType of the current datalogging session.

totalSweeps
uint32 totalSweeps()

Gets the total number of sweeps that are in the current datalogging session.

Returns

The total number of sweeps that are in the current datalogging session.

sessionIndex
uint16 sessionIndex()

Gets the index of the current datalogging session.  This starts at 1 for the first session, and is incremented for each additional session.

Returns

The index of the current datalogging session.

sampleRate
const SampleRate& sampleRate()

Gets the SampleRate of the current datalogging session.

Returns

The SampleRate of the current datalogging session.

userString
const std::string& userString()

Gets the user entered string of the current datalogging session (if any).

Returns

The user entered string of the current datalogging session, or an empty string if none was provided.