Public Member Functions |
Static Public Member Functions |
Protected Attributes |
List of all members
uscxml::DirMonInvoker Class Reference
Inheritance diagram for uscxml::DirMonInvoker:
Collaboration diagram for uscxml::DirMonInvoker:
Public Member Functions | |
virtual std::shared_ptr< InvokerImpl > | create (InvokerCallbacks *callbacks) |
Factory demands a new instance. More... | |
virtual void | eventFromSCXML (const Event &event) |
Invoker received an event from the SCXML Interpreter. | |
virtual Data | getDataModelVariables () |
Export a Data object for the `_x['name']` data-model namespace. More... | |
virtual std::list< std::string > | getNames () |
Return a list of names for types we implement. | |
virtual void | handleChanges (DirectoryWatch::Action action, const std::string dir, const std::string file, struct stat fileStat) |
virtual void | invoke (const std::string &source, const Event &invokeEvent) |
Invoker's parent state became active at the end of a macro-step. More... | |
virtual void | uninvoke () |
The invokers's parent state was left at the end of a macro-step. | |
Public Member Functions inherited from uscxml::InvokerImpl | |
virtual void | deserialize (const Data &encodedState) |
Load a state from a Data object. More... | |
virtual Data | serialize () |
Save our state into a Data object. | |
virtual void | setInvokeId (const std::string &invokeId) |
Set the invocation identifier as required when returning events. More... | |
Static Public Member Functions | |
static void | run (void *instance) |
Protected Attributes | |
std::string | _dir |
bool | _isRunning |
std::recursive_mutex | _mutex |
bool | _recurse |
bool | _reportExisting |
bool | _reportHidden |
std::set< std::string > | _suffixes |
std::thread * | _thread |
DirectoryWatch * | _watcher |
Protected Attributes inherited from uscxml::InvokerImpl | |
InvokerCallbacks * | _callbacks |
std::string | _invokeId |
Additional Inherited Members | |
Protected Member Functions inherited from uscxml::InvokerImpl | |
void | eventToSCXML (Event &event, const std::string &type, const std::string &invokeId, bool internal=false) |
Return an event to the SCXML Interpreter instance. More... | |
Member Function Documentation
|
virtual |
- Parameters
-
callbacks An object implementing the invoker callbacks.
Implements uscxml::InvokerImpl.
|
virtual |
- Returns
- An object to be represented at `_x['name']`
Implements uscxml::EventHandlerImpl.
|
virtual |
< complete path to the file including filename
< path relative to monitored directory including filename
< the name of the directory we monitor
< the directory from dir to the actual directory where we found a file
< filename including suffix
< filename without the suffix
< the extension
Implements uscxml::DirectoryWatchMonitor.
|
virtual |
- Parameters
-
source The content of the invoke's src
or evaluatedsrcexpr
attributeinvokeEvent The invocation with all its data as an event
Implements uscxml::InvokerImpl.
The documentation for this class was generated from the following files:
- plugins/invoker/dirmon/DirMonInvoker.h
- plugins/invoker/dirmon/DirMonInvoker.cpp