XJ music engine  1.9.6
In-game runtime engine for XJ music.
SegmentChoice.h
Go to the documentation of this file.
1 // Copyright (c) XJ Music Inc. (https://xjmusic.com) All Rights Reserved.
2 
3 #ifndef SEGMENT_CHOICE_H
4 #define SEGMENT_CHOICE_H
5 
6 #include <string>
7 
11 #include "SegmentEntity.h"
12 
13 namespace XJ {
14 
15  class SegmentChoice : public SegmentEntity {
16  public:
17  SegmentChoice() = default;
18 
19  static constexpr int DELTA_UNLIMITED = -1;
20 
21  float position{};
22  std::string name;
30  bool mute{};
34 
40  [[nodiscard]] bool equals(const SegmentChoice &segmentChoice) const;
41 
46  [[nodiscard]] unsigned long long hashCode() const;
47 
51  bool operator==(const SegmentChoice& other) const;
52 
56  bool operator!=(const SegmentChoice& other) const;
57 
61  bool operator<(const SegmentChoice& other) const;
62 
66  bool operator<=(const SegmentChoice& other) const;
67 
71  bool operator>(const SegmentChoice& other) const;
72 
76  bool operator>=(const SegmentChoice& other) const;
77 
78  };
79 
80 }// namespace XJ
81 
82 #endif//SEGMENT_CHOICE_H
Mode
Definition: Instrument.h:29
Type
Definition: Instrument.h:16
Type
Definition: Program.h:16
Definition: SegmentChoice.h:15
Program::Type programType
Definition: SegmentChoice.h:33
unsigned long long hashCode() const
Definition: SegmentChoice.cpp:27
SegmentChoice()=default
UUID instrumentId
Definition: SegmentChoice.h:27
Instrument::Mode instrumentMode
Definition: SegmentChoice.h:32
bool operator!=(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:48
UUID programId
Definition: SegmentChoice.h:23
bool operator==(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:45
bool equals(const SegmentChoice &segmentChoice) const
Definition: SegmentChoice.cpp:8
float position
Definition: SegmentChoice.h:21
Instrument::Type instrumentType
Definition: SegmentChoice.h:31
UUID programVoiceId
Definition: SegmentChoice.h:26
bool operator<=(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:56
bool operator<(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:52
std::string name
Definition: SegmentChoice.h:22
int deltaOut
Definition: SegmentChoice.h:29
static constexpr int DELTA_UNLIMITED
Definition: SegmentChoice.h:19
int deltaIn
Definition: SegmentChoice.h:28
UUID programSequenceBindingId
Definition: SegmentChoice.h:25
bool mute
Definition: SegmentChoice.h:30
bool operator>=(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:64
bool operator>(const SegmentChoice &other) const
Definition: SegmentChoice.cpp:60
UUID programSequenceId
Definition: SegmentChoice.h:24
Definition: SegmentEntity.h:15
Definition: ActiveAudio.h:11
std::string UUID
Definition: EntityUtils.h:28