Big Mouth Billy Bass player that takes raw wavefiles and decision list text files from an SD card
Dependencies: SDFileSystem mbed BillyBass
Diff: action.hpp
- Revision:
- 5:5b846ef42702
diff -r babc37764bd3 -r 5b846ef42702 action.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/action.hpp Sat Jun 15 03:32:20 2013 +0000 @@ -0,0 +1,33 @@ +#ifndef __included_action_hpp +#define __included_action_hpp + +#include "billybass.hpp" + +struct Action +{ + float actionTime; + bool desiredState; + DigitalOut *output; + + bool operator < (Action const &other) const { + return actionTime < other.actionTime; + } + + bool isValid() + { + return actionTime >= 0.0 && output != 0; + } + + Action() : actionTime(-1.0) + , desiredState(false) + , output(0) { + } + + bool parseLine(char const *line) + { + // TODO + return true; + } +}; + +#endif