Commit 1bf7bb4d authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libtsxx [FIX]: provide copy constructor and operator for TimeSeries

parent 4e96e76e
......@@ -34,6 +34,8 @@
* - 13/07/2005 V1.2 added exception
* - 28/04/2006 V1.3 added virtual destructor
* - 03/12/2008 V1.4 provide integer time series
* - 22/11/2016 V1.5 provide copy constructor and copy operator for
* TimeSeries
*
* ============================================================================
*/
......@@ -42,7 +44,7 @@
#ifndef TF_TSXX_H_VERSION
#define TF_TSXX_H_VERSION \
"TF_TSXX_H V1.4"
"TF_TSXX_H V1.5"
#include<aff/series.h>
#include<sffostream.h>
......@@ -86,11 +88,15 @@ namespace ts {
typedef TimeSeries<Tseries, Theader> Ttimeseries;
typedef TimeSeries<Tcoc, Theader> Tconsttimeseries;
TimeSeries() { }
TimeSeries(const Ttimeseries& s):
Tseries(s), header(s.header) { }
TimeSeries(const Tseries& s): Tseries(s) { }
TimeSeries(const Theader& h): header(h) { }
TimeSeries(const Tseries& s, const Theader& h):
Tseries(s), header(h) { }
Tseries& series() { return(*this); }
Ttimeseries& operator=(const Ttimeseries& s)
{ this->Tseries::operator=(s); this->header=s.header; return(*this); }
Ttimeseries& operator=(const Tseries& s)
{ this->Tseries::operator=(s); return(*this); }
operator Tconsttimeseries() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment