Public Member Functions | List of all members
gplib::CsvFormat Class Reference

This class reads and writes data from Comma Separated Files CSV as produced by Excel etc. this particular flavour. More...

#include <CsvFormat.h>

Inheritance diagram for gplib::CsvFormat:
Inheritance graph

Public Member Functions

 CsvFormat ()
virtual ~CsvFormat ()
virtual void GetData ()
virtual void GetData (const std::string filename)
virtual void WriteData (const std::string filename)
CsvFormatoperator= (CsvFormat &source)
CsvFormatoperator= (MtuFormat &source)
CsvFormatoperator= (TimeSeries &source)
- Public Member Functions inherited from gplib::TimeSeries
TimeSeriesComponentGetHx ()
 Access function for Hx, returns reference for efficiency. More...
TimeSeriesComponentGetHy ()
TimeSeriesComponentGetHz ()
TimeSeriesComponentGetEx ()
TimeSeriesComponentGetEy ()
ttimedataGetTime ()
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 ()
TimeSeriesoperator= (const TimeSeries &source)
TimeSeriesoperator*= (const double &factor)
 Multiply all components by a constant factor. More...
TimeSeriesoperator+= (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< ttimettimedata
- 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...

Detailed Description

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.

Constructor & Destructor Documentation

gplib::CsvFormat::CsvFormat ( )

Definition at line 13 of file CsvFormat.cpp.

gplib::CsvFormat::~CsvFormat ( )

Definition at line 17 of file CsvFormat.cpp.

Member Function Documentation

void gplib::CsvFormat::GetData ( )

Definition at line 111 of file CsvFormat.cpp.

void gplib::CsvFormat::GetData ( const std::string  filename)

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.

CsvFormat & gplib::CsvFormat::operator= ( CsvFormat source)

Definition at line 91 of file CsvFormat.cpp.

CsvFormat & gplib::CsvFormat::operator= ( MtuFormat source)

Definition at line 100 of file CsvFormat.cpp.

CsvFormat & gplib::CsvFormat::operator= ( TimeSeries source)

Definition at line 106 of file CsvFormat.cpp.

void gplib::CsvFormat::WriteData ( const std::string  filename)

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.

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