|
NAH 1.0.6
Native Application Host - Library API Reference
|
#include <nahhost.hpp>
Public Member Functions | |
| Result< ContractEnvelope > | composeContract (const CompositionInputs &inputs) const |
| Low-level contract composition from explicit inputs. | |
| Result< AppInfo > | findApplication (const std::string &id, const std::string &version="") const |
| Find an installed application by ID. | |
| Result< HostProfile > | getActiveHostProfile () const |
| Get the currently active host profile. | |
| Result< ContractEnvelope > | getLaunchContract (const std::string &app_id, const std::string &version="", const std::string &profile="", bool enable_trace=false) const |
| Generate a launch contract for an application. | |
| std::vector< AppInfo > | listApplications () const |
| List all installed applications. | |
| std::vector< std::string > | listProfiles () const |
| List all available profile names. | |
| Result< HostProfile > | loadProfile (const std::string &name) const |
| Load a specific profile by name. | |
| const std::string & | root () const |
| Get the NAH root path. | |
| Result< void > | setActiveHostProfile (const std::string &name) |
| Set the active host profile by name. | |
| Result< void > | validateProfile (const HostProfile &profile) const |
| Validate a host profile. | |
Static Public Member Functions | |
| static std::unique_ptr< NahHost > | create (const std::string &root_path) |
| Create a NahHost instance for a NAH root directory. | |
Definition at line 200 of file nahhost.hpp.
| Result< ContractEnvelope > nah::NahHost::composeContract | ( | const CompositionInputs & | inputs | ) | const |
Low-level contract composition from explicit inputs.
| inputs | Composition inputs (manifest, profile, paths, etc.) |
| Result< AppInfo > nah::NahHost::findApplication | ( | const std::string & | id, |
| const std::string & | version = "" |
||
| ) | const |
Find an installed application by ID.
| id | Application identifier (e.g., "com.example.myapp") |
| version | Optional specific version (default: latest) |
| Result< HostProfile > nah::NahHost::getActiveHostProfile | ( | ) | const |
Get the currently active host profile.
| Result< ContractEnvelope > nah::NahHost::getLaunchContract | ( | const std::string & | app_id, |
| const std::string & | version = "", |
||
| const std::string & | profile = "", |
||
| bool | enable_trace = false |
||
| ) | const |
Generate a launch contract for an application.
| app_id | Application identifier |
| version | Optional specific version (default: latest installed) |
| profile | Optional profile name (default: active profile) |
| enable_trace | Include composition trace in result |
| std::vector< AppInfo > nah::NahHost::listApplications | ( | ) | const |
List all installed applications.
| std::vector< std::string > nah::NahHost::listProfiles | ( | ) | const |
List all available profile names.
| Result< HostProfile > nah::NahHost::loadProfile | ( | const std::string & | name | ) | const |
Load a specific profile by name.
|
inline |
Get the NAH root path.
Definition at line 210 of file nahhost.hpp.
Set the active host profile by name.
| Result< void > nah::NahHost::validateProfile | ( | const HostProfile & | profile | ) | const |
Validate a host profile.