#include <icy/pacm/package.h>Inherits:
ValueSubclassed by:LocalPackage,RemotePackage
JSON-backed package metadata shared by local and remote package records.
| Return | Name | Description |
|---|---|---|
Package | Constructs an empty package. | |
Package | Constructs a package from an existing JSON value. | |
std::string | id virtual const | Returns the package unique identifier. |
std::string | name virtual const | Returns the package display name. |
std::string | type virtual const | Returns the package type (e.g. "plugin", "asset"). |
std::string | author virtual const | Returns the package author string. |
std::string | description virtual const | Returns the package description string. |
bool | valid virtual const | Returns true if id, name and type are all non-empty. |
json::Value | toJson virtual const | Returns a plain JSON copy of this package object. |
void | print virtual const | Dumps the JSON representation of this package to ost. |
Package()Constructs an empty package.
Package(const json::Value & src)Constructs a package from an existing JSON value.
src JSON object containing package fields.virtual const
virtual std::string id() constReturns the package unique identifier.
virtual const
virtual std::string name() constReturns the package display name.
virtual const
virtual std::string type() constReturns the package type (e.g. "plugin", "asset").
virtual const
virtual std::string author() constReturns the package author string.
virtual const
virtual std::string description() constReturns the package description string.
virtual const
virtual bool valid() constReturns true if id, name and type are all non-empty.
virtual const
virtual json::Value toJson() constReturns a plain JSON copy of this package object.
virtual const
virtual void print(std::ostream & ost) constDumps the JSON representation of this package to ost.
ost Output stream.