-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
1,730 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: vkav | ||
Version: 0.5-1 | ||
Version: 0.6-1 | ||
Section: base | ||
Priority: optional | ||
Architecture: amd64 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include <string> | ||
#include <string_view> | ||
|
||
template <class NumType> | ||
NumType calculate(const std::string& expression); | ||
NumType calculate(std::string_view expression); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#include <iosfwd> | ||
#include <optional> | ||
#include <stdexcept> | ||
#include <string> | ||
#include <variant> | ||
#include <vector> | ||
|
||
class ParseException : private std::runtime_error { | ||
uint32_t m_line; | ||
public: | ||
ParseException(const std::string& what_arg, uint32_t line) : std::runtime_error(what_arg), m_line{line} {} | ||
ParseException(const char* what_arg, uint32_t line) : std::runtime_error(what_arg), m_line{line} {} | ||
ParseException(const ParseException& other) noexcept : std::runtime_error(other), m_line{other.m_line} {}; | ||
|
||
ParseException& operator=(const ParseException& other) noexcept { | ||
std::runtime_error::operator=(other); | ||
m_line = other.m_line; | ||
return *this; | ||
} | ||
|
||
virtual const char* what() const noexcept { return std::runtime_error::what(); } | ||
|
||
uint32_t line() const noexcept { return m_line; } | ||
}; | ||
|
||
struct ModuleConfig { | ||
struct Parameter { | ||
uint32_t id; | ||
std::variant<uint32_t, int32_t, float> value; | ||
}; | ||
|
||
struct Resource { | ||
uint32_t id; | ||
std::string path; | ||
}; | ||
|
||
std::optional<std::string> moduleName; | ||
std::optional<uint32_t> vertexCount; | ||
|
||
std::vector<Parameter> params; | ||
|
||
std::vector<Resource> images; | ||
}; | ||
|
||
ModuleConfig parseConfig(std::istream& stream); |
Oops, something went wrong.