Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::NARParseVisitor Struct Referenceabstract

#include <archive.hh>

Inheritance diagram for nix::NARParseVisitor:
[legend]

Classes

struct  FileHandle
 

Public Member Functions

virtual box_ptr< NARParseVisitorcreateDirectory (const std::string &name)=0
 
virtual box_ptr< FileHandlecreateRegularFile (const std::string &name, uint64_t size, bool executable)=0
 
virtual void createSymlink (const std::string &name, const std::string &target)=0
 

Detailed Description

Todo
Fix this API, it sucks. A visitor for NAR parsing that performs filesystem (or virtual-filesystem) actions to restore a NAR.

Methods of this may arbitrarily fail due to filename collisions.

Member Function Documentation

◆ createRegularFile()

virtual box_ptr< FileHandle > nix::NARParseVisitor::createRegularFile ( const std::string & name,
uint64_t size,
bool executable )
pure virtual

Creates a regular file in the extraction output with the given size and executable flag. The size is guaranteed to be the true size of the file.

Implemented in nix::parseAsync::ReconstructVisitor, and nix::NARRestoreVisitor.


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