client-cpp  0.6.1
OperationsDataProcessor.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014 CyberVision, Inc.
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 #ifndef OPERATIONSPROCESSOR_HPP_
18 #define OPERATIONSPROCESSOR_HPP_
19 
23 #include "kaa/gen/EndpointGen.hpp"
24 
34 
35 namespace kaa {
36 
37 typedef std::shared_ptr<IMetaDataTransport> IMetaDataTransportPtr;
38 typedef std::shared_ptr<IConfigurationTrasnport> IConfigurationTransportPtr;
39 typedef std::shared_ptr<INotificationTransport> INotificationTransportPtr;
40 typedef std::shared_ptr<IUserTransport> IUserTransportPtr;
41 typedef std::shared_ptr<IEventTransport> IEventTransportPtr;
42 typedef std::shared_ptr<ILoggingTransport> ILoggingTransportPtr;
43 typedef std::shared_ptr<IRedirectionTransport> IRedirectionTransportPtr;
44 
46 public:
56  );
57 
58  virtual std::vector<std::uint8_t> compileRequest(const std::map<TransportType, ChannelDirection>& transportTypes);
59  virtual void processResponse(const std::vector<std::uint8_t> &response);
60 private:
61  AvroByteArrayConverter<SyncRequest> requestConverter_;
62  AvroByteArrayConverter<SyncResponse> responseConverter_;
63 
64  IMetaDataTransportPtr metaDataTransport_;
65  IProfileTransportPtr profileTransport_;
66  IConfigurationTransportPtr configurationTransport_;
67  INotificationTransportPtr notificationTransport_;
68  IUserTransportPtr userTransport_;
69  IEventTransportPtr eventTransport_;
70  ILoggingTransportPtr loggingTransport_;
71  IRedirectionTransportPtr redirectionTransport_;
72 
73  IKaaClientStateStoragePtr clientStatus_;
74 
75  std::int32_t requestId;
76 };
77 
78 } // namespace kaa
79 
80 
81 #endif /* OPERATIONSPROCESSOR_HPP_ */
OperationsDataProcessor(IMetaDataTransportPtr, IProfileTransportPtr, IConfigurationTransportPtr, INotificationTransportPtr, IUserTransportPtr, IEventTransportPtr, ILoggingTransportPtr, IRedirectionTransportPtr, IKaaClientStateStoragePtr)
std::shared_ptr< IConfigurationTrasnport > IConfigurationTransportPtr
std::shared_ptr< IUserTransport > IUserTransportPtr
std::shared_ptr< IKaaClientStateStorage > IKaaClientStateStoragePtr
virtual void processResponse(const std::vector< std::uint8_t > &response)
std::shared_ptr< ILoggingTransport > ILoggingTransportPtr
std::shared_ptr< IMetaDataTransport > IMetaDataTransportPtr
std::shared_ptr< INotificationTransport > INotificationTransportPtr
virtual std::vector< std::uint8_t > compileRequest(const std::map< TransportType, ChannelDirection > &transportTypes)
std::shared_ptr< IRedirectionTransport > IRedirectionTransportPtr
std::shared_ptr< IEventTransport > IEventTransportPtr
std::shared_ptr< IProfileTransport > IProfileTransportPtr