vg
tools for working with variation graphs
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
vg::temp_file::Handler Struct Reference

Public Member Functions

void ensure_parent_directory ()
 
 ~Handler ()
 

Static Public Member Functions

static void remove_directory (const string &name)
 Delete a directory and all files in it. More...
 

Public Attributes

unordered_set< string > filenames
 What temp files have we handed out? More...
 
unordered_set< string > dirnames
 What temp directories have we handed out. More...
 
string parent_directory
 Place where all temporary files for this vg invocation live. More...
 

Detailed Description

Because the names are in a static object, we can delete them when std::exit() is called.

Constructor & Destructor Documentation

◆ ~Handler()

vg::temp_file::Handler::~Handler ( )
inline

Member Function Documentation

◆ ensure_parent_directory()

void vg::temp_file::Handler::ensure_parent_directory ( )
inline

Make sure the parent directory for all our temporary files and directories exists.

◆ remove_directory()

static void vg::temp_file::Handler::remove_directory ( const string &  name)
inlinestatic

Delete a directory and all files in it.

Member Data Documentation

◆ dirnames

unordered_set<string> vg::temp_file::Handler::dirnames

What temp directories have we handed out.

◆ filenames

unordered_set<string> vg::temp_file::Handler::filenames

What temp files have we handed out?

◆ parent_directory

string vg::temp_file::Handler::parent_directory

Place where all temporary files for this vg invocation live.


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