XJ music engine  1.9.6
In-game runtime engine for XJ music.
ProgramSequenceChordVoicing.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef XJMUSIC_PROGRAM_SEQUENCE_CHORD_VOICING_H
4 #define XJMUSIC_PROGRAM_SEQUENCE_CHORD_VOICING_H
5 
6 #include <string>
7 
9 #include "ContentEntity.h"
10 
11 namespace XJ {
12 
14  public:
15 
17 
20  std::string programVoiceId;
21  std::string notes;
22  };
23 
29  inline void from_json(const json &json, ProgramSequenceChordVoicing &entity) {
30  EntityUtils::setRequired(json, "id", entity.id);
31  EntityUtils::setRequired(json, "programId", entity.programId);
32  EntityUtils::setRequired(json, "programSequenceChordId", entity.programSequenceChordId);
33  EntityUtils::setRequired(json, "programVoiceId", entity.programVoiceId);
34  EntityUtils::setIfNotNull(json, "notes", entity.notes);
35  }
36 
37 }// namespace XJ
38 
39 #endif//XJMUSIC_PROGRAM_SEQUENCE_CHORD_VOICING_H
nlohmann::json json
Definition: EntityUtils.h:14
Definition: ContentEntity.h:12
UUID id
Definition: ContentEntity.h:17
static void setIfNotNull(const json &json, const std::string &key, std::string &value)
Definition: EntityUtils.cpp:27
static void setRequired(const json &json, const std::string &key, UUID &value)
Definition: EntityUtils.cpp:16
Definition: ProgramSequenceChordVoicing.h:13
std::string programVoiceId
Definition: ProgramSequenceChordVoicing.h:20
std::string programSequenceChordId
Definition: ProgramSequenceChordVoicing.h:19
std::string notes
Definition: ProgramSequenceChordVoicing.h:21
UUID programId
Definition: ProgramSequenceChordVoicing.h:18
Definition: ActiveAudio.h:11
std::string UUID
Definition: EntityUtils.h:28
void from_json(const json &json, Instrument &entity)
Definition: Instrument.h:106