NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nahhost.hpp File Reference

Main NAH library interface for contract composition. More...

#include "nah/types.hpp"
#include "nah/contract.hpp"
#include "nah/host_profile.hpp"
#include <memory>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  nah::AppInfo
 Metadata about an installed application. More...
 
class  nah::Error
 Error type with code and message. More...
 
class  nah::NahHost
 
class  nah::Result< T, E >
 Result type for fallible operations. More...
 
class  nah::Result< void, E >
 

Namespaces

namespace  nah
 

Enumerations

enum class  nah::ErrorCode {
  nah::FILE_NOT_FOUND , nah::PERMISSION_DENIED , nah::IO_ERROR , nah::MANIFEST_MISSING ,
  nah::INSTALL_RECORD_INVALID , nah::PATH_TRAVERSAL , nah::ENTRYPOINT_NOT_FOUND , nah::PROFILE_MISSING ,
  nah::PROFILE_PARSE_ERROR
}
 Error codes for NAH operations. More...
 

Detailed Description

Main NAH library interface for contract composition.

This is the primary header for using NAH as a library. It provides:

  • NahHost: The main class for interacting with a NAH root
  • Result<T>: Error handling type for fallible operations
  • AppInfo: Application metadata

Definition in file nahhost.hpp.