Hazelcast C++ Client
DistributedObject.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 12/11/13.
18 
19 #ifndef HAZELCAST_DistributedObject
20 #define HAZELCAST_DistributedObject
21 
22 #include "hazelcast/util/HazelcastDll.h"
23 
24 #include <string>
25 
26 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
27 #pragma warning(push)
28 #pragma warning(disable: 4251) //for dll export
29 #pragma warning(disable: 4250) //for warning class1' : inherits 'class2::member' via dominance
30 #endif
31 
32 namespace hazelcast {
33  namespace client {
34  namespace impl {
35  class HazelcastClientInstanceImpl;
36  }
37 
58  class HAZELCAST_API DistributedObject {
59  friend class impl::HazelcastClientInstanceImpl;
60 
61  public:
65  virtual const std::string& getServiceName() const = 0;
66 
72  virtual const std::string& getName() const = 0;
73 
78  virtual void destroy() = 0;
79 
83  virtual ~DistributedObject() {}
84  };
85 
86  }
87 }
88 
89 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
90 #pragma warning(pop)
91 #endif
92 
93 #endif //HAZELCAST_DistributedObject
94 
Base class for all distributed objects.
Definition: DistributedObject.h:58
virtual ~DistributedObject()
Destructor.
Definition: DistributedObject.h:83
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32