TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Watcher_CAPI Class Reference

Public Member Functions

 Watcher_CAPI (efsw_watcher watcher, efsw_pfn_fileaction_callback fn, void *param)
 
void handleFileAction (efsw::WatchID watchid, const std::string &dir, const std::string &filename, efsw::Action action, std::string oldFilename="")
 

Public Attributes

efsw_watcher mWatcher
 
efsw_pfn_fileaction_callback mFn
 
void * mParam
 

Constructor & Destructor Documentation

Watcher_CAPI::Watcher_CAPI ( efsw_watcher  watcher,
efsw_pfn_fileaction_callback  fn,
void *  param 
)
inline
16  {
17  mWatcher = watcher;
18  mFn = fn;
19  mParam = param;
20  }
efsw_pfn_fileaction_callback mFn
Definition: FileWatcherCWrapper.cpp:12
void * mParam
Definition: FileWatcherCWrapper.cpp:13
efsw_watcher mWatcher
Definition: FileWatcherCWrapper.cpp:11

Member Function Documentation

void Watcher_CAPI::handleFileAction ( efsw::WatchID  watchid,
const std::string &  dir,
const std::string &  filename,
efsw::Action  action,
std::string  oldFilename = "" 
)
inline
24  {
25  mFn(mWatcher, watchid, dir.c_str(), filename.c_str(), (enum efsw_action)action,
26  oldFilename.c_str(), mParam );
27  }
efsw_pfn_fileaction_callback mFn
Definition: FileWatcherCWrapper.cpp:12
void * mParam
Definition: FileWatcherCWrapper.cpp:13
efsw_watcher mWatcher
Definition: FileWatcherCWrapper.cpp:11
efsw_action
Definition: efsw.h:68

Member Data Documentation

efsw_pfn_fileaction_callback Watcher_CAPI::mFn
void* Watcher_CAPI::mParam
efsw_watcher Watcher_CAPI::mWatcher

The documentation for this class was generated from the following file: