dtn::FileConvergenceLayer::Scanner Class Reference

#include <FileConvergenceLayer.h>

Inheritance diagram for dtn::FileConvergenceLayer::Scanner:

dtn::CLInfo oasys::Logger oasys::Thread oasys::SerializableObject

List of all members.


Detailed Description

Helper class (and thread) that periodically scans a directory for new bundle files.

Definition at line 72 of file 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?

Constructor & Destructor Documentation

dtn::FileConvergenceLayer::Scanner::Scanner ( int  secs_per_scan,
const std::string &  dir 
)

Constructor.

Definition at line 288 of file FileConvergenceLayer.cc.

References oasys::Thread::DELETE_ON_EXIT, and oasys::Thread::set_flag().


Member Function Documentation

void dtn::FileConvergenceLayer::Scanner::stop (  ) 

Set the flag to ask it to stop next loop.

Definition at line 434 of file FileConvergenceLayer.cc.

References run_.

Referenced by dtn::FileConvergenceLayer::interface_down().

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::run (  )  [protected, virtual]

Main thread function.

Implements oasys::Thread.

Definition at line 304 of file FileConvergenceLayer.cc.

References log_info, and NOTIMPLEMENTED.


Member Data Documentation

int dtn::FileConvergenceLayer::Scanner::secs_per_scan_ [protected]

scan interval

Definition at line 95 of file FileConvergenceLayer.h.

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]

keep running?

Definition at line 97 of file FileConvergenceLayer.h.

Referenced by stop().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:43:46 2007 for DTN Reference Implementation by  doxygen 1.5.3