mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Ref T171, interpolation logger utility function
This commit is contained in:
@@ -77,6 +77,11 @@ namespace BlackMisc
|
|||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString CInterpolationLogger::getLogDirectory()
|
||||||
|
{
|
||||||
|
return CDirectoryUtils::logDirectory();
|
||||||
|
}
|
||||||
|
|
||||||
CStatusMessageList CInterpolationLogger::writeLogFile(const QList<SituationLog> &interpolation, const QList<PartsLog> &parts)
|
CStatusMessageList CInterpolationLogger::writeLogFile(const QList<SituationLog> &interpolation, const QList<PartsLog> &parts)
|
||||||
{
|
{
|
||||||
if (parts.isEmpty() && interpolation.isEmpty()) { return CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).warning("No data for log"); }
|
if (parts.isEmpty() && interpolation.isEmpty()) { return CStatusMessage(static_cast<CInterpolationLogger *>(nullptr)).warning("No data for log"); }
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ namespace BlackMisc
|
|||||||
//! Latest log files: 0: Interpolation / 1: Parts
|
//! Latest log files: 0: Interpolation / 1: Parts
|
||||||
static QStringList getLatestLogFiles();
|
static QStringList getLatestLogFiles();
|
||||||
|
|
||||||
|
//! Get the log directory
|
||||||
|
static QString getLogDirectory();
|
||||||
|
|
||||||
//! Log entry for situation interpolation
|
//! Log entry for situation interpolation
|
||||||
struct SituationLog
|
struct SituationLog
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user