#include <libsigrokcxx/libsigrokcxx.hpp>
+#include <boost/filesystem.hpp>
+
#include "sessionfile.hpp"
namespace pv {
file_name_(file_name) {
}
+std::string SessionFile::full_name() const {
+ return boost::filesystem::path(file_name_).filename().string();
+}
+
+std::string SessionFile::display_name(const DeviceManager&) const {
+ return SessionFile::full_name();
+}
+
void SessionFile::create() {
session_ = context_->load_session(file_name_);
device_ = session_->devices()[0];