MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspect_task()

InspectResult MayaFlux::Portal::Forma::Inspector::inspect_task ( const Vruta::TaskEntry &  entry,
Surface &  surface,
LayoutCursor &  cursor,
float  x_min,
float  x_max,
float  row_h 
)
private

Definition at line 12 of file SchedulerQuery.cpp.

17{
18 auto routine = entry.routine;
19 const std::string name = entry.name;
20
21 std::vector<EntrySpec> entrys {
22 EntrySpec {
23 .label = "name",
24 .reader = [name] { return name.empty() ? "(unnamed)" : name; },
25 },
26 EntrySpec {
27 .label = "token",
28 .reader = [routine] {
29 return std::string(Reflect::enum_to_string(routine->get_processing_token()));
30 },
31 },
32 EntrySpec {
33 .label = "active",
34 .reader = [routine] { return routine->is_active() ? "true" : "false"; },
35 },
36 EntrySpec {
37 .label = "delay",
38 .reader = [routine] {
39 return std::string(Reflect::enum_to_string(routine->get_delay_context()));
40 },
41 },
42 };
43
44 auto hbuf = make_header_buffer(surface.window());
45 auto rbufs = make_row_buffers(surface.window(), entrys.size());
46
47 auto group = make_entry_group(entrys, Reflect::short_dynamic_type_name(*entry.routine), std::move(hbuf), rbufs,
48 surface, cursor, x_min, x_max, row_h, false);
49
50 InspectResult result;
51 result.group = std::move(group);
52 return result;
53}
std::string name
Definition VKDevice.cpp:123
std::shared_ptr< Buffers::FormaBuffer > make_header_buffer(const std::shared_ptr< Core::Window > &window) const
A "text"-slotted buffer, registered with the BufferManager.
Definition Inspector.cpp:11
std::vector< EntryBuffer > make_row_buffers(const std::shared_ptr< Core::Window > &window, size_t count) const
count row targets, slices of one "text"-slotted buffer, for make_entry_group's rows.
Definition Inspector.cpp:24
EntryGroup make_entry_group(std::span< const EntrySpec > entrys, std::string_view header_label, FormaTarget header_buf, std::span< const EntryBuffer > row_bufs, Surface &surface, LayoutCursor &cursor, float x_min, float x_max, float row_h, bool initially_open)
Construct a collapsible header followed by N entry rows under it.
Definition Entry.cpp:104
constexpr std::string_view enum_to_string(EnumType value) noexcept
Universal enum to string converter using magic_enum (original case)
std::string short_dynamic_type_name(const T &obj) noexcept
Returns the unqualified dynamic type name of obj.
Definition TypeInfo.hpp:95

References MayaFlux::Reflect::enum_to_string(), MayaFlux::Portal::Forma::InspectResult::group, MayaFlux::Portal::Forma::EntrySpec::label, MayaFlux::Portal::Forma::make_entry_group(), make_header_buffer(), make_row_buffers(), name, MayaFlux::Vruta::TaskEntry::name, MayaFlux::Vruta::TaskEntry::routine, MayaFlux::Reflect::short_dynamic_type_name(), and MayaFlux::Portal::Forma::Surface::window().

Referenced by scheduler(), and tasks().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: