From 4e374a506bc879db4c2aee4abea31d39980cc422 Mon Sep 17 00:00:00 2001 From: Nicholas Bianco Date: Tue, 22 Oct 2024 14:38:28 -0700 Subject: [PATCH] Add SubjectOnDiskTrial::getName() --- dart/biomechanics/SubjectOnDisk.cpp | 5 +++++ dart/biomechanics/SubjectOnDisk.hpp | 1 + 2 files changed, 6 insertions(+) diff --git a/dart/biomechanics/SubjectOnDisk.cpp b/dart/biomechanics/SubjectOnDisk.cpp index 077ceab40..a6f474e70 100644 --- a/dart/biomechanics/SubjectOnDisk.cpp +++ b/dart/biomechanics/SubjectOnDisk.cpp @@ -3215,6 +3215,11 @@ void SubjectOnDiskTrial::setName(const std::string& name) mName = name; } +const std::string& SubjectOnDiskTrial::getName() const +{ + return mName; +} + void SubjectOnDiskTrial::setTimestep(s_t timestep) { mTimestep = timestep; diff --git a/dart/biomechanics/SubjectOnDisk.hpp b/dart/biomechanics/SubjectOnDisk.hpp index 3bcb4619b..aec06124a 100644 --- a/dart/biomechanics/SubjectOnDisk.hpp +++ b/dart/biomechanics/SubjectOnDisk.hpp @@ -328,6 +328,7 @@ class SubjectOnDiskTrial public: SubjectOnDiskTrial(); void setName(const std::string& name); + const std::string& getName() const; void setTimestep(s_t timestep); s_t getTimestep(); void setTrialLength(int length);