NetOceanDirect  3.1.1
OceanDirect .NET API
Public Member Functions | Public Attributes | List of all members
NetOceanDirect::SpectrumWithMetadata Class Reference

#include <SpectrumWithMetadata.h>

Public Member Functions

 SpectrumWithMetadata (oceandirect::SpectrumWithMetadata &nativeData)
 

Public Attributes

property array< double > spectrum
 
long long timeStampData
 

Detailed Description

Wrapper class to contain raw spectrum with timestamp.

If the device supported data buffering (ex: FX) then the device may return 0-15 spectra depending on whether buffering is enabled or not. If buffering is disabled then the command will block until it has all the spectra it needs. If buffering is enabled then the command will not block and return whathever spectra is in the buffer. That could be 0 if nothing is in there.

For device that don't support data buffering (ex: Ocean STS), it will only return 1 spectra.

Member Data Documentation

◆ spectrum

property array<double> NetOceanDirect::SpectrumWithMetadata::spectrum
Initial value:
{
array<double>^ get() {
return spectrumData;
}
void set(array<double> ^data) {
spectrumData = data;
}
}
property long long timeStamp {
long long get() {
return timeStampData;
}
void set(long long data) {
timeStampData = data;
}
}
private:
array<double> ^spectrumData

The documentation for this class was generated from the following files: