CoreWrappers.h
41 lines
| 1.1 KiB
| text/x-c
|
CLexer
r0 | #pragma once | |||
#include "QtWrappers.h" | ||||
r62 | #include "pywrappers_common.h" | |||
r0 | #include <Data/DataSeriesType.h> | |||
r62 | #include <Data/DateTimeRange.h> | |||
#include <Variable/Variable2.h> | ||||
#include <pybind11/pybind11.h> | ||||
#include <sstream> | ||||
#include <string> | ||||
r0 | ||||
r62 | PYBIND11_MAKE_OPAQUE(std::vector<double>); | |||
r0 | ||||
r62 | 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; | ||||
} | ||||
r0 | ||||
r67 | std::ostream& operator<<(std::ostream& os, Variable2& variable) | |||
r0 | { | |||
r62 | os << "=========================" << std::endl | |||
<< "Variable:" << std::endl | ||||
<< " Name: " << variable.name() << std::endl | ||||
<< " range: " << std::endl | ||||
<< variable.range() << std::endl; | ||||
return os; | ||||
r0 | } | |||
r62 | std::ostream& operator<<(std::ostream& os, | |||
const VectorTimeSerie::raw_value_type& value) | ||||
r0 | { | |||
r62 | os << "[" << value.x << ", " << value.y << ", " << value.z << "]" | |||
<< std::endl; | ||||
return os; | ||||
r0 | } | |||