-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSource.hpp
More file actions
51 lines (39 loc) · 1.14 KB
/
Source.hpp
File metadata and controls
51 lines (39 loc) · 1.14 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Source.hpp
// Helmholtz-potential-evaluation
//
// Created by Eduard on 10/2/23.
//
#ifndef Source_hpp
#define Source_hpp
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include "Coordinate.hpp"
struct Source{
//OCF
Source(){}
//Source(const Source &aSource); -TODO fix the bug (WHEN THE COPY CONSTRUCTOR IS added, the code does not compile)
Source& operator = (const Source &aSource);
~Source(){}
//~OCF
//variables
int charge;
Coordinate aCoordinate;
friend std::ostream& operator<<(std::ostream& os, const Source& aSource);
};
class Distribution{
public:
//OCF
Distribution(){}
Distribution(const Distribution &aDistribution);
Distribution& operator = (const Distribution &aDistribution);
~Distribution(){}
//~OCF
bool get_sources(); //method to read the sources from the sources.txt file and
bool get_sources_mockup(); //placeholder for the sources recieving
bool print_sources(); // prints the list of sources
std::vector<Source> sourceList; // list containiing all the sourcs in the distribution
};
#endif /* Source_hpp */