morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::Manifest Struct Reference

A bundle's manifest: every file the application serves, by its hash (spec 5 §12, "Content addressing"). More...

#include <bundle.hpp>

Public Member Functions

ManifestFile const * find (std::string_view kind, std::string_view fileId) const
 Finds a file.

Public Attributes

std::string application
 The application's id.
std::string version
 The application's version.
std::vector< ManifestFile > files
 The files, sorted by kind then id.

Detailed Description

A bundle's manifest: every file the application serves, by its hash (spec 5 §12, "Content addressing").

Definition at line 143 of file bundle.hpp.

Member Function Documentation

◆ find()

ManifestFile const * morph::ui::Manifest::find ( std::string_view kind,
std::string_view fileId ) const
inlinenodiscard

Finds a file.

Parameters
kindThe file kind.
fileIdThe file id.
Returns
The file, or null.

Definition at line 156 of file bundle.hpp.

Member Data Documentation

◆ application

std::string morph::ui::Manifest::application

The application's id.

Definition at line 145 of file bundle.hpp.

◆ version

std::string morph::ui::Manifest::version

The application's version.

Definition at line 147 of file bundle.hpp.

◆ files

std::vector<ManifestFile> morph::ui::Manifest::files

The files, sorted by kind then id.

Definition at line 149 of file bundle.hpp.


The documentation for this struct was generated from the following file: