• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ibrdtn/ibrdtn/data/CustodySignalBlock.h

Go to the documentation of this file.
00001 /*
00002  * CustodySignalBlock.h
00003  *
00004  *  Created on: 05.06.2009
00005  *      Author: morgenro
00006  */
00007 
00008 
00009 
00010 #ifndef CUSTODYSIGNALBLOCK_H_
00011 #define CUSTODYSIGNALBLOCK_H_
00012 
00013 #include "ibrdtn/data/PayloadBlock.h"
00014 #include "ibrdtn/data/EID.h"
00015 #include "ibrdtn/data/SDNV.h"
00016 #include "ibrcommon/data/BLOB.h"
00017 #include "ibrdtn/data/DTNTime.h"
00018 
00019 namespace dtn
00020 {
00021         namespace data
00022         {
00023                 class CustodySignalBlock : public Block
00024                 {
00025                 public:
00026                         CustodySignalBlock();
00027                         virtual ~CustodySignalBlock();
00028 
00029                         void setMatch(const Bundle& other);
00030                         bool match(const Bundle& other) const;
00031 
00032                         virtual size_t getLength() const;
00033                         virtual std::ostream &serialize(std::ostream &stream) const;
00034                         virtual std::istream &deserialize(std::istream &stream);
00035 
00036                         char _admfield;
00037                         char _status;
00038                         SDNV _fragment_offset;
00039                         SDNV _fragment_length;
00040                         DTNTime _timeofsignal;
00041                         SDNV _bundle_timestamp;
00042                         SDNV _bundle_sequence;
00043                         EID _source;
00044                 };
00045         }
00046 }
00047 
00048 #endif /* CUSTODYSIGNALBLOCK_H_ */

Generated on Thu Nov 11 2010 09:49:47 for IBR-DTNSuite by  doxygen 1.7.1