//
//  ServerConfiguration.hpp
//  eagle0_server
//
//  Created by Dan Crosby on 1/21/18.
//  Copyright © 2018 none. All rights reserved.
//

#ifndef ServerConfiguration_hpp
#define ServerConfiguration_hpp

#include <string>
#include <unordered_map>

using std::string;

class ServerConfiguration {
private:
    std::unordered_map<string, string> configValues;

public:
    ServerConfiguration(const string& filePath);

    int intForKey(const string& key, int defaultValue = 0);
    string stringForKey(const string& key, const string& defaultValue = "");

    const static string kShardokGrpcAddress;
    const static string kEagleInterfaceGrpcAddress;
    const static string kEagleGrpcAddress;
    const static string kSslCertPath;
    const static string kSslPrivateKeyPath;
};

#endif /* ServerConfiguration_hpp */
