presence: Add parser support for any of

Add support for the anyof yaml keyword.

Change-Id: Ib28ca8ef9959cec29cb2d15a0bf758668375895f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/presence/templates/anyof.mako.hpp b/presence/templates/anyof.mako.hpp
new file mode 100644
index 0000000..cc0ca09
--- /dev/null
+++ b/presence/templates/anyof.mako.hpp
@@ -0,0 +1,7 @@
+std::make_unique<AnyOf>(
+${indent(1)}ConfigFans::get()[${f.fan}],
+${indent(1)}std::vector<std::reference_wrapper<PresenceSensor>>{
+% for s in f.sensors:
+${indent(2)}*ConfigSensors::get()[${s}],
+% endfor
+${indent(1)}})\
diff --git a/presence/templates/generated.mako.hpp b/presence/templates/generated.mako.hpp
index 3afd29f..6ba18dc 100644
--- a/presence/templates/generated.mako.hpp
+++ b/presence/templates/generated.mako.hpp
@@ -5,6 +5,7 @@
 #include <array>
 #include <memory>
 #include <string>
+#include "anyof.hpp"
 #include "fallback.hpp"
 #include "fan.hpp"
 #include "gpio.hpp"