ipfs-chromium
Public Member Functions | List of all members
ipfs::GeneratedDirectoryListing Class Reference

An index.html listing out a directory node's content. More...

#include <library/src/ipfs_client/generated_directory_listing.h>

Public Member Functions

 GeneratedDirectoryListing (std::string_view base_path)
 Get the HTML preamble going. More...
 
void AddEntry (std::string_view name)
 Add an entry to the list. More...
 
std::string const & Finish ()
 Finish up all the HTML stuff at the end. More...
 

Detailed Description

An index.html listing out a directory node's content.

Constructor & Destructor Documentation

◆ GeneratedDirectoryListing()

ipfs::GeneratedDirectoryListing::GeneratedDirectoryListing ( std::string_view  base_path)

Get the HTML preamble going.

Parameters
base_path- The path to this directory

Member Function Documentation

◆ AddEntry()

void ipfs::GeneratedDirectoryListing::AddEntry ( std::string_view  name)

Add an entry to the list.

Parameters
name- The directory's way of referring to that CID

◆ Finish()

std::string const & ipfs::GeneratedDirectoryListing::Finish ( )

Finish up all the HTML stuff at the end.

Returns
The generated HTML

The documentation for this class was generated from the following files: