• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mavlink / MAVSDK / 24110638161

08 Apr 2026 12:10AM UTC coverage: 50.459%. First build
24110638161

Pull #2855

github

web-flow
Merge a88a02493 into 9d13e3cca
Pull Request #2855: core: hide symbols by default, export only public API

15 of 379 new or added lines in 39 files covered. (3.96%)

19243 of 38136 relevant lines covered (50.46%)

668.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/mavsdk/plugins/log_files/log_files.cpp
1
// WARNING: THIS FILE IS AUTOGENERATED! As such, it should not be edited.
2
// Edits need to be made to the proto files
3
// (see https://github.com/mavlink/MAVSDK-Proto/blob/master/protos/log_files/log_files.proto)
4

5
#include <iomanip>
6

7
#include "log_files_impl.h"
8
#include "plugins/log_files/log_files.h"
9

10
namespace mavsdk {
11

12
using ProgressData = LogFiles::ProgressData;
13
using Entry = LogFiles::Entry;
14

15
LogFiles::LogFiles(System& system) : PluginBase(), _impl{std::make_unique<LogFilesImpl>(system)} {}
×
16

17
LogFiles::LogFiles(std::shared_ptr<System> system) :
×
18
    PluginBase(),
19
    _impl{std::make_unique<LogFilesImpl>(system)}
×
20
{}
×
21

22
LogFiles::~LogFiles() {}
×
23

24
void LogFiles::get_entries_async(const GetEntriesCallback callback)
×
25
{
26
    _impl->get_entries_async(callback);
×
27
}
×
28

29
std::pair<LogFiles::Result, std::vector<LogFiles::Entry>> LogFiles::get_entries() const
×
30
{
31
    return _impl->get_entries();
×
32
}
33

34
void LogFiles::download_log_file_async(
×
35
    Entry entry, std::string path, const DownloadLogFileCallback& callback)
36
{
37
    _impl->download_log_file_async(entry, path, callback);
×
38
}
×
39

40
LogFiles::Result LogFiles::erase_all_log_files() const
×
41
{
42
    return _impl->erase_all_log_files();
×
43
}
44

NEW
45
MAVSDK_PUBLIC bool operator==(const LogFiles::ProgressData& lhs, const LogFiles::ProgressData& rhs)
×
46
{
47
    return ((std::isnan(rhs.progress) && std::isnan(lhs.progress)) || rhs.progress == lhs.progress);
×
48
}
49

50
MAVSDK_PUBLIC std::ostream&
NEW
51
operator<<(std::ostream& str, LogFiles::ProgressData const& progress_data)
×
52
{
53
    str << std::setprecision(15);
×
54
    str << "progress_data:" << '\n' << "{\n";
×
55
    str << "    progress: " << progress_data.progress << '\n';
×
56
    str << '}';
×
57
    return str;
×
58
}
59

NEW
60
MAVSDK_PUBLIC bool operator==(const LogFiles::Entry& lhs, const LogFiles::Entry& rhs)
×
61
{
62
    return (rhs.id == lhs.id) && (rhs.date == lhs.date) && (rhs.size_bytes == lhs.size_bytes);
×
63
}
64

NEW
65
MAVSDK_PUBLIC std::ostream& operator<<(std::ostream& str, LogFiles::Entry const& entry)
×
66
{
67
    str << std::setprecision(15);
×
68
    str << "entry:" << '\n' << "{\n";
×
69
    str << "    id: " << entry.id << '\n';
×
70
    str << "    date: " << entry.date << '\n';
×
71
    str << "    size_bytes: " << entry.size_bytes << '\n';
×
72
    str << '}';
×
73
    return str;
×
74
}
75

NEW
76
MAVSDK_PUBLIC std::ostream& operator<<(std::ostream& str, LogFiles::Result const& result)
×
77
{
78
    switch (result) {
×
79
        case LogFiles::Result::Unknown:
×
80
            return str << "Unknown";
×
81
        case LogFiles::Result::Success:
×
82
            return str << "Success";
×
83
        case LogFiles::Result::Next:
×
84
            return str << "Next";
×
85
        case LogFiles::Result::NoLogfiles:
×
86
            return str << "No Logfiles";
×
87
        case LogFiles::Result::Timeout:
×
88
            return str << "Timeout";
×
89
        case LogFiles::Result::InvalidArgument:
×
90
            return str << "Invalid Argument";
×
91
        case LogFiles::Result::FileOpenFailed:
×
92
            return str << "File Open Failed";
×
93
        case LogFiles::Result::NoSystem:
×
94
            return str << "No System";
×
95
        default:
×
96
            return str << "Unknown";
×
97
    }
98
}
99

100
} // namespace mavsdk
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc