##// END OF EJS Templates
Variable update signal forwards variable ID...
Variable update signal forwards variable ID Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r0:86b06c4cec3c
r32:6b6270b07547
Show More
CoreWrappers.h
54 lines | 1.7 KiB | text/x-c | CLexer
#pragma once
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include <string>
#include <sstream>
#include "pywrappers_common.h"
#include "QtWrappers.h"
#include <Data/DataSeriesType.h>
#include <Data/Unit.h>
#include <Data/IDataSeries.h>
#include <Variable/Variable.h>
#include <Data/DateTimeRange.h>
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;
}