IBR-DTNSuite  0.10
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 
9 
10 namespace dtn
11 {
12  namespace data
13  {
14  AdministrativeBlock::AdministrativeBlock(char admfield) : _admfield(admfield) {
15  }
16 
18  }
19 
21  return (_admfield & 0x01);
22  }
23 
25  if (val) {
26  _admfield |= 0x01;
27  } else {
28  _admfield &= static_cast<char>( ~(0x01) );
29  }
30  }
31  } /* namespace data */
32 } /* namespace dtn */