C++17/20 interface
Daggy Core C++ interface
The Core object interface
Description
#include <DaggyCore/Core.hpp>Constructor
Core(Sources sources,
QObject* parent = nullptr);
Core(QString session,
Sources sources,
QObject* parent = nullptr);namespace daggy {
namespace sources {
namespace commands {
namespace streams {
struct Meta {
QString session;
std::chrono::time_point<std::chrono::system_clock> start_time;
QString extension;
DaggyStreamTypes type;
std::uint64_t seq_num;
std::chrono::time_point<std::chrono::system_clock> time;
};
}
struct Stream {
streams::Meta meta;
QByteArray part;
};
struct DAGGYCORE_EXPORT Properties {
QString extension;
QString exec;
QVariantMap parameters = {};
bool restart = false;
bool operator==(const Properties& other) const;
};
}
using Commands = QMap<QString, commands::Properties>;
using Command = QPair<QString, commands::Properties>;
struct DAGGYCORE_EXPORT Properties {
QString type;
QString host;
Commands commands;
bool reconnect = false;
QVariantMap parameters = {};
bool operator==(const Properties& other) const;
};
}
using Sources = QMap<QString, sources::Properties>;
using Source = QPair<QString, sources::Properties>;
}Prepare and extend supported providers
Connect aggregators
Out of box Daggy Core Aggregators
User defined aggregator
Start and stop Core
Streams viewing
Usage Example
Last updated