#ifndef MIDIMESSAGE_H_7EULNASF
#define MIDIMESSAGE_H_7EULNASF
#include <QString>
#include <QByteArray>
#include <QObject>
namespace interpreter {
class MidiMessage : public QObject
{
public:
MidiMessage(const QByteArray &message);<--- Class 'MidiMessage' has a constructor with 1 argument that is not explicit. [+]Class 'MidiMessage' has a constructor with 1 argument that is not explicit. Such constructors should in general be explicit for type safety reasons. Using the explicit keyword in the constructor means some mistakes when using the class can be avoided.
virtual ~MidiMessage();
virtual QString toString() const;
const QByteArray &getMessage() const;
size_t getLength() const;
uint8_t getStatus() const;
uint8_t getOpcode() const;
uint8_t getMidiChannel() const;
protected:
const QByteArray &m_message;
size_t m_length;
uint8_t m_status;
uint8_t m_op_code;
uint8_t m_midi_channel;
};
}
#endif /* end of include guard: MIDIMESSAGE_H_7EULNASF */