Hazelcast C++ Client
Portable.h
1 /*
2  * Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 //
17 // Created by sancar koyunlu on 6/28/13.
18 
19 #ifndef HAZELCAST_Portable
20 #define HAZELCAST_Portable
21 
22 #include "hazelcast/util/HazelcastDll.h"
23 
24 namespace hazelcast {
25  namespace client {
26  namespace serialization {
27  class PortableWriter;
28 
29  class PortableReader;
30 
49  class HAZELCAST_API Portable {
50  public:
54  virtual ~Portable(){
55  }
56 
60  virtual int getFactoryId() const = 0;
61 
65  virtual int getClassId() const = 0;
66 
71  virtual void writePortable(PortableWriter& writer) const = 0;
72 
77  virtual void readPortable(PortableReader& reader) = 0;
78 
79  };
80  }
81  }
82 }
83 
84 #endif //HAZELCAST_Portable
85 
Provides a mean of reading portable fields from a binary in form of java primitives arrays of java pr...
Definition: PortableReader.h:52
virtual ~Portable()
Destructor.
Definition: Portable.h:54
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32
Provides a mean of writing portable fields to a binary in form of java primitives arrays of java prim...
Definition: PortableWriter.h:38
Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit ...
Definition: Portable.h:49