Hazelcast C++ Client
CloudUtility.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_CLIENT_AWS_UTILITY_CLOUDUTILITY_H_
17 #define HAZELCAST_CLIENT_AWS_UTILITY_CLOUDUTILITY_H_
18 
19 #include <string>
20 #include <map>
21 #include <boost/property_tree/ptree.hpp>
22 
23 #include "hazelcast/util/HazelcastDll.h"
24 
25 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
26 #pragma warning(push)
27 #pragma warning(disable: 4251) //for dll export
28 #endif
29 
30 namespace pt = boost::property_tree;
31 
32 namespace hazelcast {
33  namespace util {
34  class ILogger;
35  }
36  namespace client {
37  namespace config {
38  class ClientAwsConfig;
39  }
40  namespace aws {
41  namespace utility {
42  class HAZELCAST_API CloudUtility {
43  public:
53  static std::map<std::string, std::string> unmarshalTheResponse(std::istream &stream,
54  util::ILogger &logger);
55 
56  static void unmarshalJsonResponse(std::istream &stream, config::ClientAwsConfig &awsConfig,
57  std::map<std::string, std::string> &attributes);
58  };
59  }
60  }
61  }
62 }
63 
64 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
65 #pragma warning(pop)
66 #endif
67 
68 #endif /* HAZELCAST_CLIENT_AWS_UTILITY_CLOUDUTILITY_H_ */
The ClientAwsConfig contains the configuration for client to connect to nodes in aws environment...
Definition: ClientAwsConfig.h:53
PN (Positive-Negative) CRDT counter.
Definition: MapEntryView.h:32