Add ResolveVariables()

Settings will be set to fixed values based on the values of the
variables used.
This commit is contained in:
WarmUpTill
2024-03-01 23:32:50 +01:00
committed by WarmUpTill
parent 2928775f5b
commit f8dadd38b4
20 changed files with 122 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ public:
std::optional<std::vector<char>> GetBinary() const;
void Save(obs_data_t *obj, const char *name) const;
void Load(obs_data_t *obj, const char *name);
void ResolveVariables();
private:
StringVariable _stringRep;
@@ -69,6 +70,8 @@ public:
static const char *GetTypeName(const OSCMessageElement &);
static const char *GetTypeTag(const OSCMessageElement &);
void ResolveVariables();
private:
struct TypeInfo {
const char *localizedName, *tag;
@@ -91,6 +94,8 @@ public:
std::string ToString() const;
std::optional<std::vector<char>> GetBuffer() const;
void ResolveVariables();
private:
StringVariable _address = "/address";
std::vector<OSCMessageElement> _elements = {