blob: c21daca3ae7803f583ed03c65d76a37b246ccd65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <cstring>
#include <fstream>
#include <string>
#include <cinttypes>
#include <sstream>
#include <functional>
#include <iostream>
#include <array>
#include <hooks.hpp>
#include <graph.hpp>
#include <network.hpp>
class sample : public hooks {
// need:
// - interface for turning on and off specific measurements
//
private:
std::ofstream sample_file;
std::string sample_string;
public:
sample(unsigned, double, double);
sample(unsigned, unsigned, double);
~sample();
void pre_fracture(const network &) override;
void bond_broken(const network& net, const current_info& cur, unsigned i) override;
void post_fracture(network &n) override;
};
|