aboutsummaryrefslogtreecommitdiffstats
path: root/src/cubase_project.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-11-25 23:01:29 +0100
committerHarald Eilertsen <haraldei@anduin.net>2020-11-26 14:49:09 +0100
commit76705a7ac6d404a9db709d45190767b3e8be24c9 (patch)
tree2c652db8e906c92c02a52ff13bda5df566dc8086 /src/cubase_project.rs
parent7d2fb776b77e10e64f5fdbf8d36676f13f1832d0 (diff)
downloadcbconv-76705a7ac6d404a9db709d45190767b3e8be24c9.tar.gz
cbconv-76705a7ac6d404a9db709d45190767b3e8be24c9.tar.bz2
cbconv-76705a7ac6d404a9db709d45190767b3e8be24c9.zip
A somewhat new start.
Split the file into chunks (with their payload) to begin with. This way it will be easier to parse each chunk separately. At least that's the idea. Let's see how it goes.
Diffstat (limited to 'src/cubase_project.rs')
-rw-r--r--src/cubase_project.rs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/cubase_project.rs b/src/cubase_project.rs
new file mode 100644
index 0000000..49c73a7
--- /dev/null
+++ b/src/cubase_project.rs
@@ -0,0 +1,40 @@
+/* cbconvert -- A program to parse and convert Cubase projects
+ * Copyright (C) 2020 <name of copyright holder>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * A struct to hold the information about a Cubase project.
+ */
+#[derive(Debug, Default)]
+pub struct CubaseProject {
+ pub app_version: PAppVersion,
+}
+
+/*
+ * Version information about the app that created the file.
+ */
+#[derive(Debug, Default)]
+pub struct PAppVersion {
+ pub appname: String,
+ pub appversion: String,
+ pub appdate: String,
+ pub num2: u32,
+ pub apparch: String,
+ pub num3: u32,
+ pub appencoding: String,
+ pub applocale: String,
+}
+