Package node_manager_fkie :: Module file_watcher :: Class FileWatcher
[frames] | no frames]

Class FileWatcher

source code

       object --+            
                |            
sip.simplewrapper --+        
                    |        
          sip.wrapper --+    
                        |    
     PyQt5.QtCore.QObject --+
                            |
                           FileWatcher

A class to watch for file changes.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__del__(self) source code
 
on_file_changed(self, filepath)
callback method, which is called by QtCore.QFileSystemWatcher if one of a launch file, included files or binary are changed.
source code
 
add_launch(self, masteruri, launch_file, launch_id, files) source code
 
rem_launch(self, masteruri, launch_file='', launch_id='') source code
 
add_binary(self, binary_file, node_name, masteruri, launchfile) source code
 
rem_binary(self, node_name) source code
 
update_files(self) source code

Inherited from PyQt5.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, objectNameChanged, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Instance Variables
 
config_changed(...)
a signal to inform the receiver about the changes on launch file or included file.
source code
 
binary_changed(...)
a signal to inform the receiver about the changes on binary file or included file.
source code
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

on_file_changed(self, filepath)

source code 

callback method, which is called by QtCore.QFileSystemWatcher if one of a launch file, included files or binary are changed. Depend on type of the file a FileWatcher.config_changed or FileWatcher.binary_changed signal will be emitted.


Instance Variable Details

config_changed(...)

source code 
a signal to inform the receiver about the changes on launch file or included file. Parameter: (changed file, list of tuples(masteruri, launch file))

binary_changed(...)

source code 
a signal to inform the receiver about the changes on binary file or included file. Parameter: (binary file, list of tuples(node name, masteruri, launchfile))