Files
odr_console/data_collectors.h
egutierrez d3af7d54ff chore: auto-commit (6 archivos)
- CMakeLists.txt
- main.cpp
- data_collectors.cpp
- data_collectors.h
- runner.cpp
- runner.h

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 13:30:27 +02:00

19 lines
680 B
C++

#pragma once
#include <string>
#include <vector>
struct Collector {
std::string id; // basename del directorio (ej. "api_hn_top")
std::string name; // del manifest (fallback id)
std::string description; // del manifest
std::string dir; // path absoluto al directorio del collector
std::string run_py; // path absoluto al run.py
bool has_run = false;
};
// Enumera <collectors_root>/*/manifest.yaml + run.py.
// Parsing manifest minimo: solo lee `id`, `name:`, `description:` por linea (sin yaml-cpp).
bool collectors_discover(const std::string& collectors_root,
std::vector<Collector>& out);