Skip to main content

astroimsim_data/
datafile.rs

1#[derive(Clone,Debug)]
2pub enum FILETYPE{
3    DAT(String), //type is delinator
4    FITS,
5}
6#[derive(Clone, Debug)]
7pub struct DataFile {
8    pub name: &'static str,
9    pub path: &'static str,
10    pub file_type: FILETYPE
11}
12
13impl DataFile{
14    pub fn new(name:&'static str, path:&'static str, file_type: FILETYPE)-> DataFile{
15        DataFile{
16            name,
17            path,
18            file_type
19        }
20    }
21
22}