Virtru SDK for C++  2.8.0
Virtru C++ SDK library - Create, Read, and Manage TDF3 Files
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
virtru_config_service.h
Go to the documentation of this file.
1 #ifndef VIRTRU_TDF3_CPP_VIRTRU_CONFIG_SERVICE_H
2 #define VIRTRU_TDF3_CPP_VIRTRU_CONFIG_SERVICE_H
3 
4 #include "network_interface.h"
5 
6 namespace virtru {
7 
8  class ConfigService {
9  public:
12  ConfigService(const std::string &configUrl);
13 
14 
18  void getConfig(const std::string& configKey, const std::string& outputFilePath);
19 
20 
24  void createConfig(const std::string& configKey, const std::string& inputFilePath);
25 
26 
31  std::string getConfigMetaData(const std::string& configKey);
32 
33 
37  void addHeader(const std::string& key, const std::string& value);
38 
39 
41  ~ConfigService() = default;
42 
43 
44  private:
45  std::string m_configUrl;
46  std::shared_ptr<INetwork> m_httpServiceProvider;
48  };
49 
50 } // namespace virtru
51 #endif // VIRTRU_TDF3_CPP_VIRTRU_CONFIG_SERVICE_H
void addHeader(const std::string &key, const std::string &value)
std::string m_configUrl
Definition: virtru_config_service.h:45
HttpHeaders m_additionalHeaders
Definition: virtru_config_service.h:47
std::string getConfigMetaData(const std::string &configKey)
std::shared_ptr< INetwork > m_httpServiceProvider
Definition: virtru_config_service.h:46
std::unordered_map< std::string, std::string > HttpHeaders
Definition: network_interface.h:27
~ConfigService()=default
Destructor.
ConfigService(const std::string &configUrl)
void createConfig(const std::string &configKey, const std::string &inputFilePath)
Definition: virtru_config_service.h:8
void getConfig(const std::string &configKey, const std::string &outputFilePath)