IBR-DTNSuite
0.12
Main Page
Namespaces
Classes
Files
File List
File Members
AdministrativeBlock.h
Go to the documentation of this file.
1
/*
2
* AdministrativeBlock.h
3
*
4
* Created on: 10.01.2013
5
* Author: morgenro
6
*/
7
8
#ifndef ADMINISTRATIVEBLOCK_H_
9
#define ADMINISTRATIVEBLOCK_H_
10
11
#include <
ibrdtn/data/PayloadBlock.h
>
12
13
namespace
dtn
14
{
15
namespace
data
16
{
17
class
AdministrativeBlock
{
18
public
:
19
class
WrongRecordException
:
public
ibrcommon::Exception
20
{
21
public
:
22
WrongRecordException
(
string
what
=
"This administrative block is not of the expected type."
) throw() : ibrcommon::
Exception
(
what
)
23
{
24
};
25
};
26
27
AdministrativeBlock
();
28
virtual
~AdministrativeBlock
() = 0;
29
30
virtual
void
read
(
const
dtn::data::PayloadBlock
&p)
throw
(WrongRecordException) = 0;
31
virtual
void
write
(
dtn::data::PayloadBlock
&p)
const
= 0;
32
};
33
}
/* namespace data */
34
}
/* namespace dtn */
35
#endif
/* ADMINISTRATIVEBLOCK_H_ */
ibrdtn
ibrdtn
data
AdministrativeBlock.h
Generated on Thu Mar 27 2014 09:26:21 for IBR-DTNSuite by
1.8.4