GPS Exchange Format library/CLI in OCaml
1(** GPX Unix I/O operations *)
2
3open Gpx
4
5(** Read GPX from file *)
6val read_file : ?validate:bool -> string -> (t, Gpx.error) result
7
8(** Write GPX to file *)
9val write_file : ?validate:bool -> string -> t -> (unit, Gpx.error) result
10
11(** Read GPX from stdin *)
12val read_stdin : ?validate:bool -> unit -> (t, Gpx.error) result
13
14(** Write GPX to stdout *)
15val write_stdout : ?validate:bool -> t -> (unit, Gpx.error) result
16
17(** Check if file exists and is readable *)
18val file_exists : string -> bool
19
20(** Get file size *)
21val file_size : string -> (int, Gpx.error) result
22
23(** Create backup of file before overwriting *)
24val create_backup : string -> (string, Gpx.error) result
25
26(** Write GPX to file with backup *)
27val write_file_with_backup : ?validate:bool -> string -> t -> (string, Gpx.error) result