STORMM Source Documentation
Loading...
Searching...
No Matches
file_snapshot.h
1// -*-c++-*-
2#ifndef STORMM_FILE_SHAPSHOT_H
3#define STORMM_FILE_SHAPSHOT_H
4
5#include "copyright.h"
6#include "FileManagement/file_util.h"
7#include "Parsing/parse.h"
8
9namespace stormm {
10namespace testing {
11
12using diskutil::PrintSituation;
13using parse::NumberFormat;
14using parse::PolyNumeric;
15using parse::TextFile;
16
28std::vector<PolyNumeric> readSnapshot(const TextFile &tf,
29 const std::string &label = std::string(""));
30
31std::vector<PolyNumeric> readSnapshot(const std::string &filename,
32 const std::string &label = std::string(""));
34
49void writeSnapshot(const std::string &filename, const std::vector<PolyNumeric> &content,
50 const std::string &label, const double tol, const NumberFormat data_format,
51 const PrintSituation expectation);
52
64TextFile readTextSnapshot(const TextFile &tf, const std::string &label = std::string(""));
65
66TextFile readTextSnapshot(const std::string &filename, const std::string &label = std::string(""));
68
84void writeTextSnapshot(const std::string &filename, const TextFile &content,
85 const std::string &label, PrintSituation expectation);
86
87void writeTextSnapshot(const std::string &filename, const std::string &content,
88 const std::string &label, PrintSituation expectation);
90
91} // namespace testing
92} // namespace stormm
93
94#endif
Structure for translating a text file into a compact, rapidly parsable vector of characters in CPU RA...
Definition textfile.h:45