diff --git a/crates/fj-interop/src/lib.rs b/crates/fj-interop/src/lib.rs index 88d4307444..7e8cfa3848 100644 --- a/crates/fj-interop/src/lib.rs +++ b/crates/fj-interop/src/lib.rs @@ -17,3 +17,4 @@ pub mod debug; pub mod mesh; pub mod processed_shape; +pub mod status_report; diff --git a/crates/fj-interop/src/status_report.rs b/crates/fj-interop/src/status_report.rs new file mode 100644 index 0000000000..a99bc6bf4a --- /dev/null +++ b/crates/fj-interop/src/status_report.rs @@ -0,0 +1,21 @@ +//! Struct to store and update status messages + +pub struct StatusReport { + status: String, +} + +impl StatusReport { + pub fn new() -> Self { + StatusReport { + status: String::new(), + } + } + + pub fn update_status(&mut self, status: &str) { + self.status = status.to_string(); + } + + pub fn status(&self) -> &str { + self.status.as_str() + } +}