|
Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
|
#include <output.hpp>
Public Member Functions | |
| File (Path &path, std::string name, std::string extension="", bool truncate=true) | |
| File & | operator= (File &&source) |
| std::ifstream & | get_istream () |
| std::ofstream & | get_ostream () |
| void | save_metadata () |
Public Member Functions inherited from adaptyst::ObjectWithMetadata | |
| ObjectWithMetadata () | |
| template<class T> | |
| void | set_metadata (std::string key, T value, bool save=true) |
| template<class T> | |
| T | get_metadata (std::string key, T default_value) |
| template<class T> | |
| T | get_metadata (std::string key) |
Protected Attributes | |
| Path & | path |
| std::string | name |
| std::ifstream | istream |
| std::ofstream | ostream |
Protected Attributes inherited from adaptyst::ObjectWithMetadata | |
| nlohmann::json | metadata |
This class represents a file with metadata attached to it (thanks to inheriting from ObjectFromMetadata) and saved separately.
|
inline |
|
inline |
Gets an input stream corresponding to the file.
|
inline |
Gets an output stream corresponding to the file.
|
inlinevirtual |
Saves metadata to disk, separately from the file itself.
Implements adaptyst::ObjectWithMetadata.
|
protected |
|
protected |
|
protected |
|
protected |