Inheritance diagram for uscxml::DirMonInvoker:
[legend]
Collaboration diagram for uscxml::DirMonInvoker:
[legend]

Public Member Functions

virtual std::shared_ptr< InvokerImplcreate (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

std::shared_ptr< InvokerImpl > uscxml::DirMonInvoker::create ( InvokerCallbacks callbacks)
virtual
Parameters
callbacksAn object implementing the invoker callbacks.

Implements uscxml::InvokerImpl.

Data uscxml::DirMonInvoker::getDataModelVariables ( )
virtual
Returns
An object to be represented at `_x['name']`

Implements uscxml::EventHandlerImpl.

void uscxml::DirMonInvoker::handleChanges ( DirectoryWatch::Action  action,
const std::string  dir,
const std::string  file,
struct stat  fileStat 
)
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.

void uscxml::DirMonInvoker::invoke ( const std::string &  source,
const Event invokeEvent 
)
virtual
Parameters
sourceThe content of the invoke's src or evaluated srcexpr attribute
invokeEventThe invocation with all its data as an event

Implements uscxml::InvokerImpl.


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