• 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/EID.h"
00014 #include "ibrdtn/data/SDNV.h"
00015 #include "ibrdtn/data/MetaBundle.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 MetaBundle& other);
00030                         void setMatch(const Bundle& other);
00031                         bool match(const Bundle& other) const;
00032 
00033                         virtual size_t getLength() const;
00034                         virtual std::ostream &serialize(std::ostream &stream) const;
00035                         virtual std::istream &deserialize(std::istream &stream);
00036 
00037                         char _admfield;
00038                         char _status;
00039                         SDNV _fragment_offset;
00040                         SDNV _fragment_length;
00041                         DTNTime _timeofsignal;
00042                         SDNV _bundle_timestamp;
00043                         SDNV _bundle_sequence;
00044                         EID _source;
00045                 };
00046         }
00047 }
00048 
00049 #endif /* CUSTODYSIGNALBLOCK_H_ */

Generated on Wed Mar 30 2011 11:11:49 for IBR-DTNSuite by  doxygen 1.7.1