#include <iostream>
#include <stdlib.h>
#include <boost/foreach.hpp>
#include <boost/random.hpp>
#include "Point.h"
#include "TimeSeries.h"
#include "Resampler.h"
#include "MovingAverage.h"
#include "FirstDerivative.h"
#include "SineTimeSeries.h"
#include "ConstantTimeSeries.h"
#include "AggregatorTimeSeries.h"
#include "CsvPointRecord.h"
#include "GainTimeSeries.h"
#include "FailoverTimeSeries.h"
#include "TimeOffsetTimeSeries.h"
#include "WarpingTimeSeries.h"
#include "ForecastTimeSeries.h"
#include "TimeOffsetTimeSeries.h"
#include "OutlierExclusionTimeSeries.h"
#include "BufferPointRecord.h"
#include "MysqlPointRecord.h"
#include "SqlitePointRecord.h"
#include "PythonInterpreter.h"
void printPoints(vector<Point> pointVector);
int main(int argc, const char * argv[])
{
Clock::sharedPointer clock(
new Clock(900));
sineWave->setName("sine");
sineWave->setClock(clock);
lag->setOffset(900);
lag->setSource(sineWave);
time_t t1 = 1400004000;
time_t t2 = t1 + 3600;
vector<Point> points = lag->points(t1, t2);
printPoints(sineWave->points(t1, t2));
cout << endl;
printPoints(points);
return 0;
}
void printPoints(vector<Point> pointVector) {
BOOST_FOREACH(
Point thePoint, pointVector) {
cout << thePoint << endl;
}
}