IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
BundleResult.h
Go to the documentation of this file.
1
/*
2
* BundleResult.h
3
*
4
* Created on: 07.12.2012
5
* Author: morgenro
6
*/
7
8
#ifndef BUNDLERESULT_H_
9
#define BUNDLERESULT_H_
10
11
#include <
ibrdtn/data/MetaBundle.h
>
12
#include <
ibrcommon/thread/Queue.h
>
13
#include <list>
14
15
namespace
dtn
16
{
17
namespace
storage
18
{
19
class
BundleResult
{
20
public
:
21
BundleResult
();
22
virtual
~BundleResult
() = 0;
23
virtual
void
put
(
const
dtn::data::MetaBundle
&bundle)
throw
() = 0;
24
};
25
26
class
BundleResultList
:
public
BundleResult
,
public
std::list<dtn::data::MetaBundle> {
27
public
:
28
BundleResultList
();
29
virtual
~BundleResultList
();
30
31
virtual
void
put
(
const
dtn::data::MetaBundle
&bundle)
throw
();
32
};
33
34
class
BundleResultQueue
:
public
BundleResult
,
public
ibrcommon::Queue
<dtn::data::MetaBundle> {
35
public
:
36
BundleResultQueue
();
37
virtual
~BundleResultQueue
();
38
39
virtual
void
put
(
const
dtn::data::MetaBundle
&bundle)
throw
();
40
};
41
}
/* namespace storage */
42
}
/* namespace dtn */
43
#endif
/* BUNDLERESULT_H_ */
daemon
src
storage
BundleResult.h
Generated on Thu Mar 27 2014 09:26:20 for IBR-DTNSuite by
1.8.4