Skip to content

Commit

Permalink
fix(dmx): expose encoding type/version
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Apr 11, 2024
1 parent 0537fa0 commit ef9a153
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/dmxpp/dmxpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ class DMX {

[[nodiscard]] int getFormatVersion() const;

[[nodiscard]] std::string_view getEncodingType() const;

[[nodiscard]] int getEncodingVersion() const;

[[nodiscard]] const std::vector<Element>& getElements() const;

protected:
Expand Down
10 changes: 9 additions & 1 deletion src/dmxpp/dmxpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ef9a153

Please sign in to comment.