client-cpp  0.7.0
ILogCollector.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 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 ILOGCOLLECTOR_HPP_
18 #define ILOGCOLLECTOR_HPP_
19 
20 #include "kaa/log/gen/LogDefinitions.hpp"
21 #include "kaa/log/ILogStorage.hpp"
23 
29 namespace kaa {
30 
31 /*
32  * Forward declaration.
33  */
34 struct LogSyncResponse;
35 
51 public:
63  virtual void addLogRecord(const KaaUserLogRecord& record) = 0;
64 
74  virtual void setStorage(ILogStoragePtr storage) = 0;
75 
85  virtual void setUploadStrategy(ILogUploadStrategyPtr strategy) = 0;
86 
87  virtual ~ILogCollector() {}
88 };
89 
90 } // namespace kaa
91 
92 #endif /* ILOGCOLLECTOR_HPP_ */
93 
virtual void addLogRecord(const KaaUserLogRecord &record)=0
Adds a new log record to the log storage.
virtual void setStorage(ILogStoragePtr storage)=0
Sets the new log storage.
std::shared_ptr< ILogStorage > ILogStoragePtr
virtual void setUploadStrategy(ILogUploadStrategyPtr strategy)=0
Sets the new log upload strategy.
The public interface to the Kaa log collecting subsystem.
std::shared_ptr< ILogUploadStrategy > ILogUploadStrategyPtr
virtual ~ILogCollector()