projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use boost::filesystem::path to get the filename from a path
[pulseview.git]
/
pv
/
device
/
file.cpp
diff --git
a/pv/device/file.cpp
b/pv/device/file.cpp
index 190b53846bc08071d60df99cd1e759b070b060be..e33be854af1922680b8dae89bfe1581caadaace6 100644
(file)
--- a/
pv/device/file.cpp
+++ b/
pv/device/file.cpp
@@
-22,6
+22,8
@@
#include "inputfile.h"
#include "sessionfile.h"
#include "inputfile.h"
#include "sessionfile.h"
+#include <boost/filesystem.hpp>
+
#include <libsigrok/libsigrok.h>
using std::string;
#include <libsigrok/libsigrok.h>
using std::string;
@@
-36,7
+38,7
@@
File::File(const std::string path) :
std::string File::format_device_title() const
{
std::string File::format_device_title() const
{
- return
_path
;
+ return
boost::filesystem::path(_path).filename().string()
;
}
File* File::create(const string &name)
}
File* File::create(const string &name)