|
GPLIB++
|
This class reads and writes data from Comma Separated Files CSV as produced by Excel etc. this particular flavour. More...
#include <CsvFormat.h>

Public Member Functions | |
| CsvFormat () | |
| virtual | ~CsvFormat () |
| virtual void | GetData () |
| virtual void | GetData (const std::string filename) |
| virtual void | WriteData (const std::string filename) |
| CsvFormat & | operator= (CsvFormat &source) |
| CsvFormat & | operator= (MtuFormat &source) |
| CsvFormat & | operator= (TimeSeries &source) |
Public Member Functions inherited from gplib::TimeSeries | |
| TimeSeriesComponent & | GetHx () |
| Access function for Hx, returns reference for efficiency. More... | |
| TimeSeriesComponent & | GetHy () |
| TimeSeriesComponent & | GetHz () |
| TimeSeriesComponent & | GetEx () |
| TimeSeriesComponent & | GetEy () |
| ttimedata & | GetTime () |
| size_t | Size () |
| Return the size of the time series, throws if one of the components has a different size. More... | |
| double | GetSamplerate () |
| The samplerate is stored in each component, we just return the samplerate of Hx assuming they are all equal. More... | |
| TimeSeries () | |
| virtual | ~TimeSeries () |
| TimeSeries & | operator= (const TimeSeries &source) |
| TimeSeries & | operator*= (const double &factor) |
| Multiply all components by a constant factor. More... | |
| TimeSeries & | operator+= (const double &shift) |
| Add a constant shift to all components. More... | |
| void | erase (const int startindex, const int endindex) |
| Erase data between startindex and endindex. More... | |
Additional Inherited Members | |
Public Types inherited from gplib::TimeSeries | |
| typedef boost::posix_time::ptime | ttime |
| We use the boost library time functionality for time types and store the time for each point in a vector. More... | |
| typedef std::vector< ttime > | ttimedata |
Protected Attributes inherited from gplib::TimeSeries | |
| TimeSeriesComponent | Hx |
| The data for the north-south magnetic field. More... | |
| TimeSeriesComponent | Hy |
| The data for the east-west magnetic field. More... | |
| TimeSeriesComponent | Hz |
| The data for the vertical magnetic field. More... | |
| TimeSeriesComponent | Ex |
| The data for the north-south electric field. More... | |
| TimeSeriesComponent | Ey |
| The data for the east-west electric field. More... | |
| ttimedata | t |
| The time associated with each data point. More... | |
This class reads and writes data from Comma Separated Files CSV as produced by Excel etc. this particular flavour.
Definition at line 14 of file CsvFormat.h.
| gplib::CsvFormat::CsvFormat | ( | ) |
Definition at line 13 of file CsvFormat.cpp.
|
virtual |
Definition at line 17 of file CsvFormat.cpp.
|
virtual |
Definition at line 111 of file CsvFormat.cpp.
|
virtual |
Declaration for GetData() that reads data from a file. This is intended for use with external data, such as recorded data, or synthetic data from external programs.
Implements gplib::TimeSeries.
Definition at line 21 of file CsvFormat.cpp.
Definition at line 91 of file CsvFormat.cpp.
Definition at line 100 of file CsvFormat.cpp.
| CsvFormat & gplib::CsvFormat::operator= | ( | TimeSeries & | source | ) |
Definition at line 106 of file CsvFormat.cpp.
|
virtual |
The abstract declaration for a method that writes the data to a file. Therefore no version without a filename is present
Implements gplib::TimeSeries.
Definition at line 71 of file CsvFormat.cpp.
1.8.6