diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-02-03 12:58:56 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2019-02-03 12:58:56 +0100 |
commit | cd8c6ffd87e8c53724d608c4084305c67c371548 (patch) | |
tree | 6036ea14a4eae344d1ba895b1090a0fe4da0a14f /src/DGDOM.h | |
parent | 7a8e610ddde160950839f3af9356d4c416b39396 (diff) |
Add metadata support to xml parser and dom model. RE-add unit-tests for version 1 instruments.
Diffstat (limited to 'src/DGDOM.h')
-rw-r--r-- | src/DGDOM.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/DGDOM.h b/src/DGDOM.h index 933c250..dea4228 100644 --- a/src/DGDOM.h +++ b/src/DGDOM.h @@ -103,13 +103,35 @@ struct InstrumentRefDOM std::vector<ChannelMapDOM> channel_map; }; -struct DrumkitDOM +struct ClickMapDOM +{ + std::string instrument; + std::string colour; +}; + +struct MetadataDOM { - std::string name; std::string version; + std::string title; std::string description; + std::string license; + std::string notes; + std::string author; + std::string email; + std::string website; + std::string logo; + std::string image; + std::string image_map; + std::vector<ClickMapDOM> clickmaps; +}; + +struct DrumkitDOM +{ + std::string version; double samplerate; + MetadataDOM metadata; + std::vector<InstrumentRefDOM> instruments; std::vector<ChannelDOM> channels; }; |