#pragma once #include #include #include #include #include "pywrappers_common.h" #include "QtWrappers.h" #include #include #include #include #include std::ostream &operator <<(std::ostream& os, const Unit& u) { os << "=========================" << std::endl << "Unit:" << std::endl << " Name: " << u.m_Name << std::endl << " Is_TimeUnit: " << u.m_TimeUnit << std::endl; return os; } std::ostream &operator <<(std::ostream& os, const IDataSeries& ds) { os << "=========================" << std::endl << "DataSerie:" << std::endl << " Number of points:" << ds.nbPoints() << std::endl << " X Axis Unit:" << std::endl << ds.xAxisUnit() << std::endl << " Y Axis Unit:" << std::endl << ds.yAxisUnit()<< std::endl << " Values Axis Unit:" << std::endl << ds.valuesUnit()<< std::endl; return os; } std::ostream &operator <<(std::ostream& os, const DateTimeRange& range) { os << "=========================" << std::endl << "SqpRange:" << std::endl << " Start date: " << DateUtils::dateTime(range.m_TStart).toString() << std::endl << " Stop date: " << DateUtils::dateTime(range.m_TEnd).toString() << std::endl; return os; } std::ostream &operator <<(std::ostream& os, const Variable& variable) { os << "=========================" << std::endl << "Variable:" << std::endl << " Name: " << variable.name() << std::endl << " range: " << std::endl << variable.range() << std::endl << " cache range: " << std::endl << variable.cacheRange() << std::endl; return os; }