client-cpp  0.0.1-SNAPSHOT
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 boost::shared_ptr<IMetaDataTransport> IMetaDataTransportPtr;
38 typedef boost::shared_ptr<IProfileTransport> IProfileTransportPtr;
39 typedef boost::shared_ptr<IConfigurationTrasnport> IConfigurationTransportPtr;
40 typedef boost::shared_ptr<INotificationTransport> INotificationTransportPtr;
41 typedef boost::shared_ptr<IUserTransport> IUserTransportPtr;
42 typedef boost::shared_ptr<IEventTransport> IEventTransportPtr;
43 typedef boost::shared_ptr<ILoggingTransport> ILoggingTransportPtr;
44 typedef boost::shared_ptr<IRedirectionTransport> IRedirectionTransportPtr;
45 
47 public:
57  );
58 
59  virtual std::vector<boost::uint8_t> compileRequest(const std::map<TransportType, ChannelDirection>& transportTypes);
60  virtual void processResponse(const std::vector<boost::uint8_t> &response);
61 private:
62  AvroByteArrayConverter<SyncRequest> requestConverter_;
63  AvroByteArrayConverter<SyncResponse> responseConverter_;
64 
65  IMetaDataTransportPtr metaDataTransport_;
66  IProfileTransportPtr profileTransport_;
67  IConfigurationTransportPtr configurationTransport_;
68  INotificationTransportPtr notificationTransport_;
69  IUserTransportPtr userTransport_;
70  IEventTransportPtr eventTransport_;
71  ILoggingTransportPtr loggingTransport_;
72  IRedirectionTransportPtr redirectionTransport_;
73 
74  IKaaClientStateStoragePtr clientStatus_;
75 
76  boost::int32_t requestId;
77 };
78 
79 } // namespace kaa
80 
81 
82 #endif /* OPERATIONSPROCESSOR_HPP_ */
boost::shared_ptr< IProfileTransport > IProfileTransportPtr
OperationsDataProcessor(IMetaDataTransportPtr, IProfileTransportPtr, IConfigurationTransportPtr, INotificationTransportPtr, IUserTransportPtr, IEventTransportPtr, ILoggingTransportPtr, IRedirectionTransportPtr, IKaaClientStateStoragePtr)
boost::shared_ptr< IConfigurationTrasnport > IConfigurationTransportPtr
boost::shared_ptr< INotificationTransport > INotificationTransportPtr
boost::shared_ptr< IUserTransport > IUserTransportPtr
boost::shared_ptr< IMetaDataTransport > IMetaDataTransportPtr
boost::shared_ptr< IKaaClientStateStorage > IKaaClientStateStoragePtr
boost::shared_ptr< ILoggingTransport > ILoggingTransportPtr
boost::shared_ptr< IEventTransport > IEventTransportPtr
virtual std::vector< boost::uint8_t > compileRequest(const std::map< TransportType, ChannelDirection > &transportTypes)
boost::shared_ptr< IRedirectionTransport > IRedirectionTransportPtr
virtual void processResponse(const std::vector< boost::uint8_t > &response)