Infinispan HotRod C++ Client 9.2.0.Final
Loading...
Searching...
No Matches
Marshaller.h
Go to the documentation of this file.
1#ifndef ISPN_HOTROD_MARSHALLER_H
2#define ISPN_HOTROD_MARSHALLER_H
3
4#include <vector>
5
6namespace infinispan {
7namespace hotrod {
8
12template <class T> class Marshaller
13{
14 public:
21 virtual void marshall(const T& obj, std::vector<char>& buff) = 0;
28 virtual T* unmarshall(const std::vector<char>& buff) = 0;
29
30 virtual ~Marshaller() {}
31 static void destroy(Marshaller<T> *marshaller) { delete marshaller; }
32};
33
34}} // namespace
35
36#endif /* ISPN_HOTROD_MARSHALLER_H */
Definition: Marshaller.h:13
virtual void marshall(const T &obj, std::vector< char > &buff)=0
virtual T * unmarshall(const std::vector< char > &buff)=0
static void destroy(Marshaller< T > *marshaller)
Definition: Marshaller.h:31
virtual ~Marshaller()
Definition: Marshaller.h:30
Definition: AuthenticationConfiguration.h:10