2 Copyright (c) 2018-2019 Nokia.
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
8 http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef SHAREDDATALAYER_DATABASECONFIGURATIONIMPL_HPP_
18 #define SHAREDDATALAYER_DATABASECONFIGURATIONIMPL_HPP_
20 #include "private/databaseconfiguration.hpp"
22 namespace shareddatalayer
24 class DatabaseConfigurationImpl: public DatabaseConfiguration
27 DatabaseConfigurationImpl();
29 ~DatabaseConfigurationImpl() override;
31 void checkAndApplyDbType(const std::string& type) override;
33 void checkAndApplyServerAddress(const std::string& address) override;
35 DatabaseConfiguration::DbType getDbType() const override;
37 DatabaseConfigurationImpl::Addresses getServerAddresses() const override;
39 DatabaseConfiguration::Addresses getDefaultServerAddresses() const override;
41 bool isEmpty() const override;
45 Addresses serverAddresses;