summaryrefslogtreecommitdiffstats
path: root/actions.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge actions.hpp and events.hppBrad Bishop2017-02-151-101/+0
| | | | | | | | | | | | | | | Move all action/filter functors to a common functor.hpp. The intent of this refactoring is to facilitate reuse of functors in more than one context. - Moved functors from actions.hpp and events.hpp to functor.hpp. - Renamed events.cpp to functor.cpp. - Moved Action/Filter types to types.hpp. - Minor namespace shuffling. - Update pimgen to render according to the new namespaces. Change-Id: I630ec1587b8a48f6dc2eac1111365035873310d9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* setProperty: Allow multiple objectsBrad Bishop2017-02-151-5/+8
| | | | | | | Allow multiple objects when using the setProperty action. Change-Id: Ie65b9abee6240d6a6541b9778d4bf776010f865d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove details namespaceBrad Bishop2017-02-091-3/+1
| | | | | | | | The usage was incoherent and it isn't really necessary for application only objects. Change-Id: I76eb5525a39fbbef95548558e777940edf574a06 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use std::functionBrad Bishop2017-02-091-8/+5
| | | | | | | | Replace CallableHolder with std::function. No need to re-invent the wheel. Change-Id: I2647a802237dba4a48187718f0d3da59e97575d7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Fix sigsegv with createObjectsBrad Bishop2017-02-091-4/+4
| | | | | | | | | | | The create objects functor lambda was not properly capturing the input object map. Update the signature to accept an rvalue reference and move construct the lambda copy. Change-Id: I901fd978ea0882d5475b7340a2db1017d7aa443c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add support for createObjects actionBrad Bishop2017-02-011-0/+11
| | | | | Change-Id: I999a5e506a236eac8ca0944b0e2b003c57612e54 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Pass a bus connection to actions and filtersBrad Bishop2017-01-311-4/+4
| | | | | | | Prepare for outgoing calls from filters and actions. Change-Id: Ic6255f51f8f4be9f25f2fd5321ee0b7703d60179 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Allow multiple objects to be destroyedBrad Bishop2017-01-311-4/+4
| | | | | | | | Enhance the destroyObject action to take an array rather than a single path. Change-Id: Ic1de7274afc253042b590c71ca200618a6ff54d2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove default action/filterBrad Bishop2017-01-241-3/+0
| | | | | | | These noops are no longer required. Change-Id: Iebe706388d985838eff2259fc93c928a7fe0c0e7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Remove decltype where unnecessaryBrad Bishop2017-01-121-1/+1
| | | | | Change-Id: I0d1b9107810a3aaac1f52517b3ff220fdf567ee3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Run astyleBrad Bishop2017-01-121-6/+9
| | | | | Change-Id: Iec4802e9837465a7deb1fd7fd57a2068cc18c50d Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add setProperty actionBrad Bishop2017-01-121-0/+37
| | | | | | | | The setProperty action sets a property to a predefined value when a match occurs. Change-Id: Ibd3cbb0da86a99e823b9cc00cc0240772d895f7f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Removed duplicated Holder adaptersBrad Bishop2016-12-151-88/+17
| | | | | | | | Refactor copy/pasted action/filter/interface object adapter types into a single templated framework. Change-Id: Iafbd814572a7db13fddc5314617e310fe5f0a062 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* actions: Add destroy actionBrad Bishop2016-11-081-0/+5
| | | | | | | Add an action to destroy an object on signal match. Change-Id: I23fb160bcf7507d0d0a5f2d82f1cfb24131adf76 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* filters/actions: Pass manager to filters/actionsBrad Bishop2016-11-081-12/+14
| | | | | Change-Id: Iaf70fdd5c8cdb64237bbd1bb5f73add645fededb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add actionsBrad Bishop2016-11-081-0/+119
Provide tooling to enable specification of pre-implemented actions to perform after a signal match. Add a default 'noop' action to be used when an action isn't specified. Change-Id: I8d3b1ef2cfc26771322820be931a61bba3ad8d94 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud