00001
00002
00003
00004
00005
00006
00007
00008 #include "Block.h"
00009
00010 #ifndef BLOCKFACTORY_H_
00011 #define BLOCKFACTORY_H_
00012
00013 namespace dtn
00014 {
00015 namespace data
00016 {
00020 class BlockFactory
00021 {
00022 public:
00026 BlockFactory();
00027
00034 virtual Block* parse(const unsigned char *data, unsigned int size);
00035
00041 virtual Block* copy(const Block &block);
00042
00047 static Block* newBlock();
00048
00049 virtual char getBlockType() const;
00050 };
00051 }
00052 }
00053
00054
00055 #endif