diff --git a/include/dmxpp/dmxpp.h b/include/dmxpp/dmxpp.h index 69582ee5a..f2a40d9fb 100644 --- a/include/dmxpp/dmxpp.h +++ b/include/dmxpp/dmxpp.h @@ -29,6 +29,10 @@ class DMX { [[nodiscard]] int getFormatVersion() const; + [[nodiscard]] std::string_view getEncodingType() const; + + [[nodiscard]] int getEncodingVersion() const; + [[nodiscard]] const std::vector& getElements() const; protected: diff --git a/src/dmxpp/dmxpp.cpp b/src/dmxpp/dmxpp.cpp index 6e9fa7d07..2f437b02c 100644 --- a/src/dmxpp/dmxpp.cpp +++ b/src/dmxpp/dmxpp.cpp @@ -59,10 +59,18 @@ DMX::operator bool() const { } std::string_view DMX::getFormatType() const { - return this->encodingType; + return this->formatType; } int DMX::getFormatVersion() const { + return this->formatVersion; +} + +std::string_view DMX::getEncodingType() const { + return this->encodingType; +} + +int DMX::getEncodingVersion() const { return this->encodingVersion; }