@TB
I think adding topics should be enough. We can have another file instead of same ini.
Say we have 20 topics. A topic file will contain - scrip21= .........
If RTDMan detects the file, it adds the topic and immediately deletes the file.
Remove topic can be achieved by say - scrip6=0 .... but that is not necessary.
I think adding topics should be enough. We can have another file instead of same ini.
Say we have 20 topics. A topic file will contain - scrip21= .........
If RTDMan detects the file, it adds the topic and immediately deletes the file.
Remove topic can be achieved by say - scrip6=0 .... but that is not necessary.
1) Need to study windows api to detect files and get new topics from it. (Win32 should do)
2) Extend topic_id_to_scrip_field_map to include new maps for topicid. (see Worker::Worker()). Topic id is registered with RTD and is used by us to identify scrip + field.
3) Then call rtd_client->connectTopic() as done in void Worker::connect()
4) check code and see if there are any arrays that need to be extended. Ex settings needs to be updated - settings.scrips_array. And then its trial and error to fix remaining stuff.
Still i think this is too much work for little gain. After adding a scrip you will have to backfilll anyway for the new scrips. Might as well call backfill for all and keep it simple ...