Helper class (and thread) that periodically scans a directory for new bundle files. More...
#include <FileConvergenceLayer.h>
Public Member Functions | |
| Scanner (int secs_per_scan, const std::string &dir) | |
| Constructor. | |
| void | stop () |
| Set the flag to ask it to stop next loop. | |
| virtual void | serialize (oasys::SerializableObject *) |
| Virtual from SerializableObject. | |
Protected Member Functions | |
| void | run () |
| Main thread function. | |
Protected Attributes | |
| int | secs_per_scan_ |
| scan interval | |
| std::string | dir_ |
| directory to scan for bundles. | |
| bool | run_ |
| keep running? | |
Helper class (and thread) that periodically scans a directory for new bundle files.
Definition at line 72 of file FileConvergenceLayer.h.
| dtn::FileConvergenceLayer::Scanner::Scanner | ( | int | secs_per_scan, | |
| const std::string & | dir | |||
| ) |
Constructor.
Definition at line 295 of file FileConvergenceLayer.cc.
| void dtn::FileConvergenceLayer::Scanner::run | ( | ) | [protected] |
Main thread function.
Definition at line 311 of file FileConvergenceLayer.cc.
| virtual void dtn::FileConvergenceLayer::Scanner::serialize | ( | oasys::SerializableObject * | ) | [inline, virtual] |
Virtual from SerializableObject.
Definition at line 87 of file FileConvergenceLayer.h.
| void dtn::FileConvergenceLayer::Scanner::stop | ( | ) |
Set the flag to ask it to stop next loop.
Definition at line 441 of file FileConvergenceLayer.cc.
References run_.
Referenced by dtn::FileConvergenceLayer::interface_down().
std::string dtn::FileConvergenceLayer::Scanner::dir_ [protected] |
directory to scan for bundles.
Definition at line 96 of file FileConvergenceLayer.h.
bool dtn::FileConvergenceLayer::Scanner::run_ [protected] |
int dtn::FileConvergenceLayer::Scanner::secs_per_scan_ [protected] |
scan interval
Definition at line 95 of file FileConvergenceLayer.h.
1.6.3