aboutsummaryrefslogtreecommitdiffstats
path: root/src/cubase_project.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-08-23 09:33:54 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-08-23 09:33:54 +0200
commitfc90574ded706faa3c1ff7e5f66a2058d5869c3f (patch)
treec51754d4bf73ba42d97417c98187b36fe27b7e93 /src/cubase_project.rs
parent1ac4165e94b64ac2a8b30bf684f3ca8a3cb10965 (diff)
downloadcbconv-fc90574ded706faa3c1ff7e5f66a2058d5869c3f.tar.gz
cbconv-fc90574ded706faa3c1ff7e5f66a2058d5869c3f.tar.bz2
cbconv-fc90574ded706faa3c1ff7e5f66a2058d5869c3f.zip
Strip logic and rely more on combinatorial parsing.
Make more use of the parser library for parisng instead of driving it mostly through program logic. Also try more to populate the CubaseProject struct during parsing. For now we also mostly ignore container nodes. List them to the terminal, but we only care about parsing the actial object nodes. This may change in the future, but for now looks like a useful strategy.
Diffstat (limited to 'src/cubase_project.rs')
-rw-r--r--src/cubase_project.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cubase_project.rs b/src/cubase_project.rs
index 498936d..b58bbc9 100644
--- a/src/cubase_project.rs
+++ b/src/cubase_project.rs
@@ -18,15 +18,16 @@
/**
* A struct to hold the information about a Cubase project.
*/
-#[derive(Debug, Default)]
+#[derive(Clone, Debug, Default)]
pub struct CubaseProject {
pub app_version: PAppVersion,
+ pub arrangement: PArrangement,
}
/*
* Version information about the app that created the file.
*/
-#[derive(Debug, Default)]
+#[derive(Clone, Debug, Default)]
pub struct PAppVersion {
pub appname: String,
pub appversion: String,
@@ -38,6 +39,6 @@ pub struct PAppVersion {
pub applocale: String,
}
-#[derive(Debug, Default)]
+#[derive(Clone, Debug, Default)]
pub struct PArrangement {
}