client-cpp  0.6.3
KaaDefaults.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 KAADEFAULTS_HPP_
18 #define KAADEFAULTS_HPP_
19 
20 #include <map>
21 #include <list>
22 #include <string>
23 
24 #include <botan/base64.h>
25 #include <cstdint>
26 
29 
30 #define KAA_LOG_LEVEL_NONE 0
31 #define KAA_LOG_LEVEL_FATAL 1
32 #define KAA_LOG_LEVEL_ERROR 2
33 #define KAA_LOG_LEVEL_WARNING 3
34 #define KAA_LOG_LEVEL_INFO 4
35 #define KAA_LOG_LEVEL_DEBUG 5
36 #define KAA_LOG_LEVEL_TRACE 6
37 #define KAA_LOG_LEVEL_FINE_TRACE 7
38 
39 #define KAA_LOG_LEVEL KAA_LOG_LEVEL_FINE_TRACE
40 
41 namespace kaa {
42 
46 extern const char * const BUILD_VERSION;
47 
48 extern const char * const BUILD_COMMIT_HASH;
49 
50 extern const char * const APPLICATION_TOKEN;
51 
52 extern const std::uint32_t PROFILE_VERSION;
53 
54 extern const std::uint32_t CONFIG_VERSION;
55 
56 extern const std::uint32_t SYSTEM_NF_VERSION;
57 
58 extern const std::uint32_t USER_NF_VERSION;
59 
60 extern const std::uint32_t LOG_SCHEMA_VERSION;
61 
62 extern const std::uint32_t POLLING_PERIOD_SECONDS;
63 
64 extern const char * const CLIENT_PUB_KEY_LOCATION;
65 
66 extern const char * const CLIENT_PRIV_KEY_LOCATION;
67 
68 extern const char * const CLIENT_STATUS_FILE_LOCATION;
69 
70 typedef std::vector<ITransportConnectionInfoPtr> BootstrapServers;
72 
73 const Botan::SecureVector<std::uint8_t>& getDefaultConfigData();
74 const std::string& getDefaultConfigSchema();
75 
76 typedef std::map<std::string, std::int32_t> EventClassFamilyVersionInfos;
78 
80 }
81 
82 #endif /* KAADEFAULTS_HPP_ */
const char *const CLIENT_STATUS_FILE_LOCATION
const std::uint32_t PROFILE_VERSION
const std::uint32_t POLLING_PERIOD_SECONDS
const char *const CLIENT_PRIV_KEY_LOCATION
const BootstrapServers & getBootstrapServers()
std::map< std::string, std::int32_t > EventClassFamilyVersionInfos
Definition: KaaDefaults.hpp:76
const char *const CLIENT_PUB_KEY_LOCATION
std::vector< ITransportConnectionInfoPtr > BootstrapServers
Definition: KaaDefaults.hpp:70
const std::string & getDefaultConfigSchema()
const EventClassFamilyVersionInfos & getEventClassFamilyVersionInfo()
const Botan::SecureVector< std::uint8_t > & getDefaultConfigData()
const std::uint32_t CONFIG_VERSION
const std::uint32_t USER_NF_VERSION
const char *const APPLICATION_TOKEN
const std::uint32_t LOG_SCHEMA_VERSION
SharedDataBuffer getPropertiesHash()
const char *const BUILD_VERSION
std::pair< boost::shared_array< std::uint8_t >, std::uint32_t > SharedDataBuffer
const char *const BUILD_COMMIT_HASH
const std::uint32_t SYSTEM_NF_VERSION