NetOceanDirect 3.1.3
OceanDirect .NET API
NetOceanDirect::SpectrumWithMetadata Class Reference

#include <SpectrumWithMetadata.h>

Public Member Functions

 SpectrumWithMetadata ()
 
 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.

Constructor & Destructor Documentation

◆ SpectrumWithMetadata() [1/2]

SpectrumWithMetadata::SpectrumWithMetadata ( )

◆ SpectrumWithMetadata() [2/2]

SpectrumWithMetadata::SpectrumWithMetadata ( oceandirect::SpectrumWithMetadata & nativeData)

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
long long timeStampData
Definition SpectrumWithMetadata.h:48

◆ timeStampData

long long NetOceanDirect::SpectrumWithMetadata::timeStampData

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