23#ifndef _SO_FILE_SENSOR_H
24#define _SO_FILE_SENSOR_H
26#include <Inventor/sensors/SoTimerSensor.h>
27#include <Inventor/helpers/SbFileHelper.h>
29#include <Inventor/STL/map>
30#include <Inventor/STL/vector>
93 virtual void trigger();
99 typedef std::pair<SbString, SbFileHelper::Stat> FullPathStatPair;
100 typedef std::map<SbString, FullPathStatPair> FileStatMap;
104 std::vector<SbString> m_touchedFiles;
106 FileStatMap m_fileStat;
Class for smart character strings.
Sensor that triggers a callback each time a file is changed.
SoFileSensor()
Default constructor.
void removeFile(const SbString &filename)
Remove file from monitored list.
virtual ~SoFileSensor()
Destroys the sensor, freeing up any memory associated with it after unscheduling it.
SoFileSensor(SoSensorCB *func, void *data)
Constructor that takes the callback function and data to be called when the sensor is triggered.
void clearFiles()
Stop monitoring all previously registered files.
void addFile(const SbString &filename)
Add file to be monitored.
SbString getFilename() const
Return changed file name.
void SoSensorCB(void *data, SoSensor *sensor)
This typedef defines the calling sequence for all callbacks from sensors.
Sensor that triggers repeatedly at regular intervals.
void setBaseTime(const SbTime &base)
Sets the base time.
const SbTime & getBaseTime() const
Gets the base time.