IBR-DTNSuite  0.10
dtn::storage::BundleSeeker Class Referenceabstract

#include <BundleSeeker.h>

Inheritance diagram for dtn::storage::BundleSeeker:
Inheritance graph
Collaboration diagram for dtn::storage::BundleSeeker:
Collaboration graph

Public Types

typedef std::set< dtn::data::EIDeid_set
 

Public Member Functions

virtual ~BundleSeeker ()
 
virtual void get (const BundleSelector &cb, BundleResult &result)=0 throw (NoBundleFoundException, BundleSelectorException)
 
virtual const eid_set getDistinctDestinations ()=0
 

Detailed Description

Definition at line 22 of file BundleSeeker.h.

Member Typedef Documentation

Return a set of distinct destinations for all bundles in the storage.

Returns

Definition at line 39 of file BundleSeeker.h.

Constructor & Destructor Documentation

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

Definition at line 25 of file BundleSeeker.h.

Member Function Documentation

virtual void dtn::storage::BundleSeeker::get ( const BundleSelector cb,
BundleResult result 
) throw (NoBundleFoundException, BundleSelectorException)
pure virtual

Query the database for a number of bundles. The bundles are selected with the BundleSeeker class which is to implement by the user of this method.

Parameters
cbThe instance of the BundleSelector class.
Returns
A list of bundles.

Implemented in dtn::storage::SQLiteDatabase, dtn::storage::SQLiteBundleStorage, dtn::storage::SimpleBundleStorage, dtn::storage::BundleStorage, dtn::storage::MemoryBundleStorage, and dtn::routing::SchedulingBundleIndex.

Referenced by dtn::api::Registration::underflow().


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