| 497 | } |
| 498 | |
| 499 | void es_objects_plugin::plugin_initialize(const boost::program_options::variables_map& options) |
| 500 | { |
| 501 | my->init_program_options( options ); |
| 502 | |
| 503 | database().new_objects.connect([this]( const vector<object_id_type>& ids, |
| 504 | const flat_set<account_id_type>& ) { |
| 505 | my->on_objects_create( ids ); |
| 506 | }); |
| 507 | database().changed_objects.connect([this]( const vector<object_id_type>& ids, |
| 508 | const flat_set<account_id_type>& ) { |
| 509 | my->on_objects_update( ids ); |
| 510 | }); |
| 511 | database().removed_objects.connect([this](const vector<object_id_type>& ids, |
| 512 | const vector<const object*>&, const flat_set<account_id_type>& ) { |
| 513 | my->on_objects_delete( ids ); |
| 514 | }); |
| 515 | |
| 516 | } |
| 517 | |
| 518 | void es_objects_plugin::plugin_startup() |
| 519 | { |
nothing calls this directly
no test coverage detected