IBR-DTNSuite  0.10
dtn::storage::BundleSelector Class Reference

#include <BundleSelector.h>

Collaboration diagram for dtn::storage::BundleSelector:
Collaboration graph

Public Member Functions

virtual ~BundleSelector ()
 
virtual dtn::data::Size limit () const throw ()
 
virtual bool shouldAdd (const dtn::data::MetaBundle &) const throw (BundleSelectorException)
 

Detailed Description

Definition at line 37 of file BundleSelector.h.

Constructor & Destructor Documentation

virtual dtn::storage::BundleSelector::~BundleSelector ( )
inlinevirtual

Definition at line 40 of file BundleSelector.h.

Member Function Documentation

virtual dtn::data::Size dtn::storage::BundleSelector::limit ( ) const throw ()
inlinevirtual

Limit the number of selected items.

Returns
The limit as number of items.

Definition at line 46 of file BundleSelector.h.

virtual bool dtn::storage::BundleSelector::shouldAdd ( const dtn::data::MetaBundle ) const throw (BundleSelectorException)
inlinevirtual

This method is called by the storage to determine if one bundle should added to a set or not.

Parameters
idThe bundle id of the bundle to select.
Returns
True, if the bundle should be added to the set.

Definition at line 54 of file BundleSelector.h.


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