IBR-DTN  1.0.0
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)
 
virtual bool addIfSelected (BundleResult &result, const dtn::data::MetaBundle &bundle) 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 bool dtn::storage::BundleSelector::addIfSelected ( BundleResult result,
const dtn::data::MetaBundle bundle 
) const
throw (BundleSelectorException
)
inlinevirtual

This method is called by the storage to add a bundle to the result if it has been selected by the shouldAdd method

Definition at line 60 of file BundleSelector.h.

References shouldAdd().

Here is the call graph for this function:

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 addIfSelected() 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.

Referenced by addIfSelected().


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