Begin body reading code
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
module file
|
||||
|
||||
export FITFile, read_file
|
||||
|
||||
include("header.jl")
|
||||
include("body.jl")
|
||||
|
||||
using .header
|
||||
using .body
|
||||
|
||||
struct FITFile
|
||||
header::FITHeader
|
||||
body::RecordHeader
|
||||
end
|
||||
|
||||
function read_file(filepath::AbstractString)::FITFile
|
||||
open(filepath, "r") do f
|
||||
header = read_header(f)
|
||||
body = read_row(f)
|
||||
FITFile(header, body)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user