Celero
Classes | Public Member Functions | Static Public Member Functions | List of all members
celero::Archive Class Reference

#include <Archive.h>

Classes

class  Impl
 

Public Member Functions

void setFileName (const std::string &x)
 Specify a file name for a results output file. More...
 
void add (std::shared_ptr< celero::ExperimentResult > x)
 Adds or updates a result which will be saved to a results archive file. More...
 
void save ()
 Saves all current results to a results archive file. More...
 

Static Public Member Functions

static ArchiveInstance ()
 Singleton.
 

Detailed Description

Author
John Farrier

Member Function Documentation

◆ add()

void Archive::add ( std::shared_ptr< celero::ExperimentResult x)

Adds or updates a result which will be saved to a results archive file.

This should re-save on every new result so that the output can be monitored externally.

◆ save()

void Archive::save ( )

Saves all current results to a results archive file.

Will overwrite all existing data and refresh with new data.

◆ setFileName()

void Archive::setFileName ( const std::string &  x)

Specify a file name for a results output file.

Parameters
xThe name of the output file in which to store Celero's results.

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