src: storage refactoring

* used the getFirst/getAll template methods throughout the SqliteStorage.
* renamed LambdaTask to TaskLambda to match our naming convention.
This commit is contained in:
malte_langkabel
2016-05-17 17:09:18 +02:00
parent cb9dde6641
commit e40459e71d
6 changed files with 53 additions and 138 deletions
+32
View File
@@ -0,0 +1,32 @@
#include "utility/scheduling/TaskLambda.h"
TaskLambda::TaskLambda(std::function<void()> func)
: m_func(func)
{
}
TaskLambda::~TaskLambda()
{
}
void TaskLambda::enter()
{
}
Task::TaskState TaskLambda::update()
{
m_func();
return Task::STATE_FINISHED;
}
void TaskLambda::exit()
{
}
void TaskLambda::interrupt()
{
}
void TaskLambda::revert()
{
}