Hazelcast C++ Client
hazelcast
include
hazelcast
client
serialization
FieldType.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
#ifndef HAZELCAST_FIELD_TYPE
17
#define HAZELCAST_FIELD_TYPE
18
19
#include <ostream>
20
#include "hazelcast/util/HazelcastDll.h"
21
22
namespace
hazelcast
{
23
namespace
client {
24
namespace
serialization {
25
class
HAZELCAST_API
FieldType
{
26
public
:
27
FieldType
();
28
29
FieldType
(
int
type);
30
31
FieldType
(
FieldType
const
& rhs);
32
33
const
byte getId()
const
;
34
35
FieldType
& operator=(
FieldType
const
& rhs);
36
37
bool
operator==(
FieldType
const
& rhs)
const
;
38
39
bool
operator!=(
FieldType
const
& rhs)
const
;
40
41
friend
std::ostream &operator<<(std::ostream &os,
const
FieldType
&type);
42
43
byte id;
44
};
45
46
namespace
FieldTypes {
47
static
const
FieldType
TYPE_PORTABLE(0);
48
static
const
FieldType
TYPE_BYTE(1);
49
static
const
FieldType
TYPE_BOOLEAN(2);
50
static
const
FieldType
TYPE_CHAR(3);
51
static
const
FieldType
TYPE_SHORT(4);
52
static
const
FieldType
TYPE_INT(5);
53
static
const
FieldType
TYPE_LONG(6);
54
static
const
FieldType
TYPE_FLOAT(7);
55
static
const
FieldType
TYPE_DOUBLE(8);
56
static
const
FieldType
TYPE_UTF(9);
57
static
const
FieldType
TYPE_PORTABLE_ARRAY(10);
58
static
const
FieldType
TYPE_BYTE_ARRAY(11);
59
static
const
FieldType
TYPE_BOOLEAN_ARRAY(12);
60
static
const
FieldType
TYPE_CHAR_ARRAY(13);
61
static
const
FieldType
TYPE_SHORT_ARRAY(14);
62
static
const
FieldType
TYPE_INT_ARRAY(15);
63
static
const
FieldType
TYPE_LONG_ARRAY(16);
64
static
const
FieldType
TYPE_FLOAT_ARRAY(17);
65
static
const
FieldType
TYPE_DOUBLE_ARRAY(18);
66
static
const
FieldType
TYPE_UTF_ARRAY(19);
67
}
68
}
69
}
70
}
71
#endif
/* HAZELCAST_FIELD_TYPE */
72
hazelcast::client::serialization::FieldType
Definition:
FieldType.h:25
hazelcast
PN (Positive-Negative) CRDT counter.
Definition:
MapEntryView.h:32
Generated on Tue Aug 28 2018 14:09:08 for Hazelcast C++ Client by
1.8.14