8 #ifndef PSYLLID_STREAM_PRESET_HH_ 9 #define PSYLLID_STREAM_PRESET_HH_ 30 typedef std::map< std::string, std::string >
nodes_t;
41 const nodes_t& get_nodes()
const;
42 const connections_t& get_connections()
const;
45 void node(
const std::string& a_type,
const std::string& a_name );
46 void connection(
const std::string& a_conn );
66 static bool add_preset(
const scarab::param_node& a_preset_node );
72 typedef scarab::registrar< stream_preset, runtime_stream_preset, const std::string& >
registrar_t;
101 #define DECLARE_PRESET( preset_class ) \ 102 class preset_class : public stream_preset \ 105 preset_class( const std::string& a_type ); \ 106 virtual ~preset_class() {}; \ 109 #define REGISTER_PRESET( preset_class, preset_type ) \ 110 static ::scarab::registrar< ::psyllid::stream_preset, preset_class, const std::string& > s_stream_preset_##preset_class##_registrar( preset_type ); std::shared_ptr< registrar_t > f_registrar_ptr
std::map< std::string, std::string > nodes_t
static runtime_presets s_runtime_presets
connections_t f_connections
scarab::registrar< stream_preset, runtime_stream_preset, const std::string &> registrar_t
std::shared_ptr< runtime_stream_preset > f_preset_ptr
std::map< std::string, rsp_creator > runtime_presets
rsp_creator(const std::string &a_type)
std::set< std::string > connections_t
static std::mutex s_runtime_presets_mutex