blob: d5d6fe5efffa7ff9628baf532b34189649f87826 (
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
|
#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;
public:
sample(double, double, 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;
};
|