Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-03-31 15:30:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-03-31 15:30:16 +0300
commitc09da95d03cd3769173aa5e3af3e73aae8ae2be4 (patch)
tree5fa7ff6b6c0fd4e2f50ae754e2ae061b69c319a4 /src/ObjectModel/Variable.h
parent64ed2bdff2dd166a1a92f079c2bb124fcaf4dd54 (diff)
Finished including global variables in object model
Diffstat (limited to 'src/ObjectModel/Variable.h')
-rw-r--r--src/ObjectModel/Variable.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ObjectModel/Variable.h b/src/ObjectModel/Variable.h
index a75da9cc..0f464eeb 100644
--- a/src/ObjectModel/Variable.h
+++ b/src/ObjectModel/Variable.h
@@ -25,9 +25,11 @@ public:
Variable(const char *str, ExpressionValue pVal, int8_t pScope) noexcept;
~Variable();
+ ReadLockedPointer<const char> GetName() const noexcept { return name.Get(); }
ExpressionValue GetValue() const noexcept { return val; }
int8_t GetScope() const noexcept { return scope; }
void Assign(ExpressionValue ev) noexcept { val = ev; }
+ const Variable *GetNext() const noexcept { return next; }
private:
Variable *next;
@@ -46,8 +48,8 @@ public:
Variable *Lookup(const char *str) noexcept;
const Variable *Lookup(const char *str) const noexcept;
+ const Variable *GetRoot() const noexcept { return root; }
void Insert(Variable *toInsert) noexcept;
- void ListAsJson(OutputBuffer *buf) const noexcept;
void EndScope(uint8_t blockNesting) noexcept;
void Clear() noexcept;