Hazelcast C++ Client
IDistributedObject.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 ihsan demir on 07 June 2016.
18 
19 #ifndef HAZELCAST_CLIENT_IDISTRIBUTEDOBJECT_H_
20 #define HAZELCAST_CLIENT_IDISTRIBUTEDOBJECT_H_
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 #endif
30 
31 namespace hazelcast {
32  namespace client {
33  class HAZELCAST_API IDistributedObject {
34  public:
38  virtual const std::string& getServiceName() const = 0;
39 
45  virtual const std::string& getName() const = 0;
46 
51  virtual void destroy() = 0;
52 
56  virtual ~IDistributedObject() {}
57  };
58  }
59 }
60 
61 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
62 #pragma warning(pop)
63 #endif
64 
65 #endif //HAZELCAST_CLIENT_IDISTRIBUTEDOBJECT_H_
66 
virtual ~IDistributedObject()
Destructor.
Definition: IDistributedObject.h:56
Definition: IDistributedObject.h:33
Definition: MapEntryView.h:32