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

◆ describe_nested()

void MayaFlux::Reflect::Tool::RequestCollector::describe_nested ( const clang::CXXRecordDecl * record,
const std::filesystem::path & header,
unsigned line,
const clang::SourceManager & manager )
private

Definition at line 146 of file Collector.cpp.

148{
149 RecordRequest request;
150 request.name = record->getQualifiedNameAsString();
151 request.line = line;
152
153 std::vector<const clang::CXXRecordDecl*> nested;
154 std::string error;
155 const std::string where = header.string() + ": ";
156 if (!collect_members(record, request.members, nested, error)) {
157 m_errors.push_back(where + "nested type " + request.name + ": " + error);
158 return;
159 }
160 if (!store(header, std::move(request), where)) {
161 return;
162 }
163 for (const clang::CXXRecordDecl* child : nested) {
164 if (file_of(manager, child->getLocation()) == header) {
165 describe_nested(child, header, line, manager);
166 }
167 }
168}
std::vector< std::string > m_errors
Definition Collector.hpp:37
bool store(const std::filesystem::path &header, RecordRequest request, const std::string &where)
void describe_nested(const clang::CXXRecordDecl *record, const std::filesystem::path &header, unsigned line, const clang::SourceManager &manager)
void error(Component component, Context context, std::source_location location, std::string_view message)
Log an error message and optionally throw an exception.
Vruta::SoundRoutine line(float start_value, float end_value, float duration_seconds, uint32_t step_duration, bool restartable)
Creates a continuous interpolation generator between two values over time.
Definition Tasks.cpp:60
std::pair< std::shared_ptr< Kriya::BufferPipeline >, std::shared_ptr< Buffers::AudioBuffer > > record(const std::shared_ptr< Kakshya::DynamicSoundStream > &stream, uint32_t input_channel, double seconds, std::optional< uint32_t > monitor, uint32_t channel)
Record a live input channel into a stream for a number of seconds.
Definition Rigs.cpp:262

References describe_nested(), MayaFlux::Reflect::Tool::RecordRequest::line, m_errors, MayaFlux::Reflect::Tool::RecordRequest::members, MayaFlux::Reflect::Tool::RecordRequest::name, MayaFlux::record(), and store().

Referenced by describe_nested(), and run().

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