ant
A2 ant: class-based analysis framework
ant::tmpfile_t Struct Reference

A tmpfile class which cleans up after itself. More...

#include <tmpfile_t.h>

+ Collaboration diagram for ant::tmpfile_t:

Public Member Functions

 tmpfile_t ()
 
 tmpfile_t (const tmpfolder_t &folder, const std::string &extension)
 
void write_testdata ()
 
 ~tmpfile_t ()
 
 tmpfile_t (tmpfile_t &&)=default
 
 tmpfile_t (const tmpfile_t &)=delete
 
tmpfile_toperator= (tmpfile_t &&)=default
 
tmpfile_toperator= (const tmpfile_t &)=delete
 

Public Attributes

std::string filename
 
std::vector< std::uint8_t > testdata
 

Static Public Attributes

static std::size_t tmpfiles = 0
 

Detailed Description

A tmpfile class which cleans up after itself.

Mostly used by tests, but maybe helpful elsewhere

Constructor & Destructor Documentation

◆ tmpfile_t() [1/4]

tmpfile_t::tmpfile_t ( )

◆ tmpfile_t() [2/4]

tmpfile_t::tmpfile_t ( const tmpfolder_t folder,
const std::string &  extension 
)

◆ ~tmpfile_t()

tmpfile_t::~tmpfile_t ( )

◆ tmpfile_t() [3/4]

ant::tmpfile_t::tmpfile_t ( tmpfile_t &&  )
default

◆ tmpfile_t() [4/4]

ant::tmpfile_t::tmpfile_t ( const tmpfile_t )
delete

Member Function Documentation

◆ operator=() [1/2]

tmpfile_t& ant::tmpfile_t::operator= ( tmpfile_t &&  )
default

◆ operator=() [2/2]

tmpfile_t& ant::tmpfile_t::operator= ( const tmpfile_t )
delete

◆ write_testdata()

void tmpfile_t::write_testdata ( )

Member Data Documentation

◆ filename

std::string ant::tmpfile_t::filename

◆ testdata

std::vector<std::uint8_t> ant::tmpfile_t::testdata

◆ tmpfiles

size_t tmpfile_t::tmpfiles = 0
static

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