remove unused ManaSinkProxy
This commit is contained in:
parent
48d0a3d5c0
commit
a7b5d50533
1 changed files with 0 additions and 101 deletions
|
@ -128,107 +128,6 @@ inline nlohmann::json make_array_descriptor(const std::string &name, const std::
|
||||||
return make_array_descriptor(name, mana_float, size, bits);
|
return make_array_descriptor(name, mana_float, size, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
class ManaSinkProxy: public IManaSink
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
explicit ManaSinkProxy(IManaSink *sink)
|
|
||||||
: sink_(sink)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void init(int plugin_argc, const char **plugin_argv) override
|
|
||||||
{
|
|
||||||
pre_init(plugin_argc, plugin_argv);
|
|
||||||
sink_->init(plugin_argc, plugin_argv);
|
|
||||||
post_init(plugin_argc, plugin_argv);
|
|
||||||
}
|
|
||||||
|
|
||||||
void shutdown() override
|
|
||||||
{
|
|
||||||
pre_shutdown();
|
|
||||||
sink_->shutdown();
|
|
||||||
post_shutdown();
|
|
||||||
}
|
|
||||||
|
|
||||||
void begin_run(const char *descriptor_json) override
|
|
||||||
{
|
|
||||||
pre_begin_run(descriptor_json);
|
|
||||||
sink_->begin_run(descriptor_json);
|
|
||||||
post_begin_run(descriptor_json);
|
|
||||||
}
|
|
||||||
|
|
||||||
void end_run(const char *descriptor_json) override
|
|
||||||
{
|
|
||||||
pre_shutdown();
|
|
||||||
sink_->end_run(descriptor_json);
|
|
||||||
post_shutdown();
|
|
||||||
}
|
|
||||||
|
|
||||||
void process_event(uint16_t eventIndex, mana_offset_array_t *arrays, size_t arrayCount,
|
|
||||||
size_t totalBytes) override
|
|
||||||
{
|
|
||||||
pre_process_event(eventIndex, arrays, arrayCount, totalBytes);
|
|
||||||
sink_->process_event(eventIndex, arrays, arrayCount, totalBytes);
|
|
||||||
post_process_event(eventIndex, arrays, arrayCount, totalBytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
void process_system_event(const uint32_t *data, size_t size) override
|
|
||||||
{
|
|
||||||
pre_process_system_event(data, size);
|
|
||||||
sink_->process_system_event(data, size);
|
|
||||||
post_process_system_event(data, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
IManaSink *sink() { return sink_; }
|
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void pre_init(int plugin_argc, const char **plugin_argv)
|
|
||||||
{
|
|
||||||
(void)plugin_argc;
|
|
||||||
(void)plugin_argv;
|
|
||||||
}
|
|
||||||
virtual void post_init(int plugin_argc, const char **plugin_argv)
|
|
||||||
{
|
|
||||||
(void)plugin_argc;
|
|
||||||
(void)plugin_argv;
|
|
||||||
}
|
|
||||||
virtual void pre_shutdown() {}
|
|
||||||
virtual void post_shutdown() {}
|
|
||||||
virtual void pre_begin_run(const char *descriptor_json) { (void)descriptor_json; }
|
|
||||||
virtual void post_begin_run(const char *descriptor_json) { (void)descriptor_json; }
|
|
||||||
virtual void pre_process_event(uint16_t eventIndex, mana_offset_array_t *arrays,
|
|
||||||
size_t arrayCount, size_t totalBytes)
|
|
||||||
{
|
|
||||||
(void)eventIndex;
|
|
||||||
(void)arrays;
|
|
||||||
(void)arrayCount;
|
|
||||||
(void)totalBytes;
|
|
||||||
}
|
|
||||||
virtual void post_process_event(uint16_t eventIndex, mana_offset_array_t *arrays,
|
|
||||||
size_t arrayCount, size_t totalBytes)
|
|
||||||
{
|
|
||||||
(void)eventIndex;
|
|
||||||
(void)arrays;
|
|
||||||
(void)arrayCount;
|
|
||||||
(void)totalBytes;
|
|
||||||
}
|
|
||||||
virtual void pre_process_system_event(const uint32_t *data, size_t size)
|
|
||||||
{
|
|
||||||
(void)data;
|
|
||||||
(void)size;
|
|
||||||
}
|
|
||||||
virtual void post_process_system_event(const uint32_t *data, size_t size)
|
|
||||||
{
|
|
||||||
(void)data;
|
|
||||||
(void)size;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
|
||||||
IManaSink *sink_;
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class ManaSinkPerfProxy: public IManaSink
|
class ManaSinkPerfProxy: public IManaSink
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue