STORMM Source Documentation
Loading...
Searching...
No Matches
src
UnitTesting
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
9
namespace
stormm {
10
namespace
testing {
11
12
using
diskutil::PrintSituation;
13
using
parse::NumberFormat;
14
using
parse::PolyNumeric;
15
using
parse::TextFile;
16
28
std::vector<PolyNumeric> readSnapshot(
const
TextFile
&tf,
29
const
std::string &label = std::string(
""
));
30
31
std::vector<PolyNumeric> readSnapshot(
const
std::string &filename,
32
const
std::string &label = std::string(
""
));
34
49
void
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
64
TextFile
readTextSnapshot(
const
TextFile
&tf,
const
std::string &label = std::string(
""
));
65
66
TextFile
readTextSnapshot(
const
std::string &filename,
const
std::string &label = std::string(
""
));
68
84
void
writeTextSnapshot(
const
std::string &filename,
const
TextFile
&content,
85
const
std::string &label, PrintSituation expectation);
86
87
void
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
stormm::parse::TextFile
Structure for translating a text file into a compact, rapidly parsable vector of characters in CPU RA...
Definition
textfile.h:45
Generated by
1.13.2