Processes a file action.
More...
UpdateListener::UpdateListener |
( |
| ) |
|
|
inline |
std::string UpdateListener::getActionName |
( |
efsw::Action |
action | ) |
|
|
inline |
25 case efsw::Actions::Add:
return "Add";
26 case efsw::Actions::Modified:
return "Modified";
27 case efsw::Actions::Delete:
return "Delete";
28 case efsw::Actions::Moved:
return "Moved";
29 default:
return "Bad Action";
void UpdateListener::handleFileAction |
( |
efsw::WatchID |
watchid, |
|
|
const std::string & |
dir, |
|
|
const std::string & |
filename, |
|
|
efsw::Action |
action, |
|
|
std::string |
oldFilename = "" |
|
) |
| |
|
inline |
35 std::cout <<
"DIR (" << dir +
") FILE (" + ( oldFilename.empty() ?
"" :
"from file " + oldFilename +
" to " ) + filename +
") has event " <<
getActionName( action ) << std::endl;
std::string getActionName(efsw::Action action)
Definition: efsw-test.cpp:21
The documentation for this class was generated from the following file: