DataSerializer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef PROTOCOLS__GENERICS__DATA_SERIALIZER_H
00024 #define PROTOCOLS__GENERICS__DATA_SERIALIZER_H
00025
00026 #include "Imports.h"
00027 #include "Data.h"
00028 #include "Transport.h"
00029
00030 namespace Protocols {
00031 namespace Generics {
00032
00034
00046 class DataSerializer
00047 {
00048 CALITKO_MOCKABLE
00049
00050 public:
00051 virtual ~DataSerializer() {}
00052 virtual bool read (Data &, Transport *) = 0;
00053 virtual bool write (const Data &, Transport *) = 0;
00054 };
00055
00056 }
00057 }
00058
00059 #endif // PROTOCOLS__GENERICS__DATA_SERIALIZER_H