Hazelcast C++ Client
 All Classes Functions Variables Enumerations Enumerator Pages
CloudUtility.h
1 /*
2  * Copyright (c) 2008-2017, 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 client {
34  namespace config {
35  class ClientAwsConfig;
36  }
37  namespace aws {
38  namespace utility {
39  class HAZELCAST_API CloudUtility {
40  public:
49  static std::map<std::string, std::string> unmarshalTheResponse(std::istream &stream);
50 
51  static void unmarshalJsonResponse(std::istream &stream, config::ClientAwsConfig &awsConfig,
52  std::map<std::string, std::string> &attributes);
53  };
54  }
55  }
56  }
57 }
58 
59 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
60 #pragma warning(pop)
61 #endif
62 
63 #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