I'm working on Climate plugin, I think I'm on the right track of implementing system that would give a lot of freedom in determining what is displayed on floorplans for certain devices (see Climate plugin thread on same forum).
For implementation I need some basic pattern matching and substitute features. In c++ it seems that Boost.regex is the answer :http://www.onlamp.com/pub/a/onlamp/2006/04/06/boostregex.html?page=1
Can I use that or are there any concerns about usage of this additional library?
Thanks in advance,
Hmmm... I thought you wanted to do this in Perl? So in which case why are you not just using Perl's Perlre regular expression engine?
Cause Climate Plugin is in c++ and would like to keep it that way.... I've updated wiki page with this idea and I think I can implement that without regex engine (with few simple parsing functions). I'm more interesting what do you all think about those propositions. Basically they bring two novelties and first one already works beatifully on my floorplans:
- I have full control how and what to display for Climate devices
- I can even replace predefined states (COOL,AUTO;HEAT...) to custom strings (this could even be a way to translate those strings).....
I've updated wiki page with description of what has been done and what are my further propositions:http://wiki.linuxmce.org/index.php/Climate_Plugin#Description_of_enhanced_710_plugin_and_ability_to_control_displayed_info_on_floorplans
BTW, I'd be happy to hear your discussion about those matters, cause you also seem to be involved with various devices on floorplans.... We also must clear out how to support blinds, drapes, shutters etc... Currently I have them in lighting floorplan as dimmable lights switch - quite a dirty duct tape solution...