30 const char* ret =
nullptr;
40 assert( ret &&
"Unknown enum." );
58[[nodiscard]] MRVIEWER_API std::string
pathToString(
const std::vector<std::string>& path );
87struct Value<std::string>
91 std::optional<std::vector<std::string>> allowedValues;
tl::expected< T, E > Expected
Definition MRExpected.h:31
Definition MRUITestEngineControl.h:12
std::pair< std::vector< std::string >, TypedEntry > PathedEntry
listAllEntries returns this: each element is (fullPath, entry) where fullPath.back() == entry....
Definition MRUITestEngineControl.h:64
Expected< std::vector< PathedEntry > > listAllEntries(const std::vector< std::string > &rootPath)
Value< std::string > ValueString
Definition MRUITestEngineControl.h:96
Expected< std::string > writeValue(const std::vector< std::string > &path, T value)
Value< std::uint64_t > ValueUint
Definition MRUITestEngineControl.h:94
Expected< Value< T > > readValue(const std::vector< std::string > &path)
Returns the value at the path, or returns an error if the path or type is wrong.
std::string pathToString(const std::vector< std::string > &path)
Returns the elements of path combined into a single string.
Value< std::int64_t > ValueInt
Definition MRUITestEngineControl.h:93
Expected< std::string > pressButton(const std::vector< std::string > &path)
Expected< std::vector< TypedEntry > > listEntries(const std::vector< std::string > &path)
Returns the contents of path, or an error if the path is wrong.
Value< double > ValueReal
Definition MRUITestEngineControl.h:95
std::string_view toString(EntryType type)
Definition MRUITestEngineControl.h:28
EntryType
Definition MRUITestEngineControl.h:19
@ valueString
Definition MRUITestEngineControl.h:25
@ valueUint
Definition MRUITestEngineControl.h:23
@ valueInt
Definition MRUITestEngineControl.h:22
@ button
Definition MRUITestEngineControl.h:20
@ group
Definition MRUITestEngineControl.h:21
@ valueReal
Definition MRUITestEngineControl.h:24
Definition MRUITestEngineControl.h:47
std::string name
Definition MRUITestEngineControl.h:48
std::string status
Definition MRUITestEngineControl.h:54
EntryType type
Definition MRUITestEngineControl.h:49
Read/write values: (drags, sliders, etc)
Definition MRUITestEngineControl.h:81
double min
Definition MRUITestEngineControl.h:83
double value
Definition MRUITestEngineControl.h:82
double max
Definition MRUITestEngineControl.h:84