softwarecontainer
0.18.0-739e8d7 2017-05-04
|
Base class used for creating a service manifest loader. More...
#include <servicemanifestloader.h>
Public Member Functions | |
ServiceManifestLoader (const std::string &source) | |
Constructs a service manifest loader object and stores the source string. More... | |
virtual | ~ServiceManifestLoader () |
The destructor decref:s the json items in the stored content. More... | |
virtual std::vector< json_t * > | loadContent ()=0 |
Loads the json content of the service manifest(s) based on the source sent to the constructor. More... | |
Protected Attributes | |
std::vector< json_t * > | m_content |
const std::string | m_source |
Base class used for creating a service manifest loader.
ConfigStore uses a loader derived from this class to load service manifests.
Definition at line 34 of file servicemanifestloader.h.
|
inline |
Constructs a service manifest loader object and stores the source string.
source | The source of the service manifest |
Definition at line 44 of file servicemanifestloader.h.
|
inlinevirtual |
The destructor decref:s the json items in the stored content.
Definition at line 49 of file servicemanifestloader.h.
References loadContent().
|
pure virtual |
Loads the json content of the service manifest(s) based on the source sent to the constructor.
ConfigStoreError | if loading of the content was unsuccessful |
Implemented in softwarecontainer::ServiceManifestFileLoader.
Referenced by ~ServiceManifestLoader().