d3af7d54ff
- 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>
19 lines
680 B
C++
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);
|