IBR-DTNSuite
0.10
Main Page
Namespaces
Classes
Files
File List
File Members
AdministrativeBlock.cpp
Go to the documentation of this file.
1
/*
2
* AdministrativeBlock.cpp
3
*
4
* Created on: 10.01.2013
5
* Author: morgenro
6
*/
7
8
#include "
ibrdtn/data/AdministrativeBlock.h
"
9
10
namespace
dtn
11
{
12
namespace
data
13
{
14
AdministrativeBlock::AdministrativeBlock
(
char
admfield) : _admfield(admfield) {
15
}
16
17
AdministrativeBlock::~AdministrativeBlock
() {
18
}
19
20
bool
AdministrativeBlock::refsFragment
()
const
{
21
return
(
_admfield
& 0x01);
22
}
23
24
void
AdministrativeBlock::setFragment
(
bool
val) {
25
if
(val) {
26
_admfield
|= 0x01;
27
}
else
{
28
_admfield
&=
static_cast<
char
>
( ~(0x01) );
29
}
30
}
31
}
/* namespace data */
32
}
/* namespace dtn */
ibrdtn
ibrdtn
data
AdministrativeBlock.cpp
Generated on Mon Jul 22 2013 15:16:00 for IBR-DTNSuite by
1.8.3.1