##// END OF EJS Templates
Improves AMDA result parsing...
Improves AMDA result parsing Finds the unit among all the commented lines, in order to handle the case where the number of commented lines differs from one file to another

File last commit:

r491:0877c365bd5c
r492:41e897ecff03
Show More
SqpDateTime.h
43 lines | 1.0 KiB | text/x-c | CLexer
Add SqpDateTime struct
r191 #ifndef SCIQLOP_SQPDATETIME_H
#define SCIQLOP_SQPDATETIME_H
SqpDateTime is now declared as meta type
r234 #include <QObject>
Add qdebug operator for SqpDateTime to enable its display in a log
r296
#include <QDebug>
Alexandre Leroux
Uses DateUtils
r488 #include <Common/DateUtils.h>
Alexandre Leroux
Centralization of qregistermetatype management
r308 #include <Common/MetaTypes.h>
Add SqpDateTime struct
r191 /**
* @brief The SqpDateTime struct holds the information of time parameters
*/
struct SqpDateTime {
Alexandre Leroux
Some fixes...
r491 /// Start time (UTC)
Add SqpDateTime struct
r191 double m_TStart;
Alexandre Leroux
Some fixes...
r491 /// End time (UTC)
Add SqpDateTime struct
r191 double m_TEnd;
A variable is now created with its dateTime too....
r228
The cache is now updated only if date requested has been successfully...
r318 bool contains(const SqpDateTime &dateTime) const noexcept
A variable is now created with its dateTime too....
r228 {
return (m_TStart <= dateTime.m_TStart && m_TEnd >= dateTime.m_TEnd);
}
Add intersect méthode on variable and sqpDateTime...
r258
The cache is now updated only if date requested has been successfully...
r318 bool intersect(const SqpDateTime &dateTime) const noexcept
Add intersect méthode on variable and sqpDateTime...
r258 {
return (m_TEnd >= dateTime.m_TStart && m_TStart <= dateTime.m_TEnd);
}
Add SqpDateTime struct
r191 };
Add qdebug operator for SqpDateTime to enable its display in a log
r296 inline QDebug operator<<(QDebug d, SqpDateTime obj)
{
Alexandre Leroux
Uses DateUtils
r488 auto tendDateTimeStart = DateUtils::dateTime(obj.m_TStart);
auto tendDateTimeEnd = DateUtils::dateTime(obj.m_TEnd);
Add qdebug operator for SqpDateTime to enable its display in a log
r296
d << "ts: " << tendDateTimeStart << " te: " << tendDateTimeEnd;
return d;
}
SqpDateTime is now declared as meta type
r234 // Required for using shared_ptr in signals/slots
Alexandre Leroux
Centralization of qregistermetatype management
r308 SCIQLOP_REGISTER_META_TYPE(SQPDATETIME_REGISTRY, SqpDateTime)
SqpDateTime is now declared as meta type
r234
Add SqpDateTime struct
r191 #endif // SCIQLOP_SQPDATETIME_H