softwarecontainer  0.18.0-739e8d7 2017-05-04
softwarecontainer::BaseConfigStore Class Reference
Inheritance diagram for softwarecontainer::BaseConfigStore:
[legend]

Public Member Functions

 BaseConfigStore (std::unique_ptr< ServiceManifestLoader > loader)
 Creates a new BaseConfigStore object and searches for Service Manifests (of file type json) in the input path, and stores the Capabilities' Gateway configurations. More...
 

Protected Attributes

std::map< std::string, GatewayConfigurationm_capMap
 

Detailed Description

Definition at line 37 of file baseconfigstore.h.

Constructor & Destructor Documentation

softwarecontainer::BaseConfigStore::BaseConfigStore ( std::unique_ptr< ServiceManifestLoader loader)

Creates a new BaseConfigStore object and searches for Service Manifests (of file type json) in the input path, and stores the Capabilities' Gateway configurations.

Exceptions
ServiceManifestPathErrorif the path to the json file(s) is incorrectly formatted or if the path is not allowed
ServiceManifestParseErrorif parsing of the json fails
CapabilityParseErrorif parsing of one or more Capabilities or Gateway objects is unsuccessful

Definition at line 24 of file baseconfigstore.cpp.

References softwarecontainer::JSONParser::read().

25 {
26  std::vector<json_t *> content = loader->loadContent();
27 
28  for (json_t *serviceManifest : content) {
29  parseServiceManifest(serviceManifest);
30  }
31 }

Here is the call graph for this function:


The documentation for this class was generated from the following files: