"name" : "Database Source",
"path" : "@PLUGIN_INSTALL_PATH@/databasesinkplugin.so",
"playbackOnLoad" : "true",
- "databaseFile" : "generated.db"
+ "databaseFile" : "/tmp/storage"
}
],
"sinks": [
obj.key = results[i][0];
obj.value = results[i][1];
obj.source = results[i][2];
- obj.time = boost::lexical_cast<double>(results[i][3]);
-
- /// TODO: figure out why sequence is broken:
-
-// obj->sequence = boost::lexical_cast<int>(results[i][4]);
+ obj.zone = boost::lexical_cast<double>(results[i][3]);
+ obj.time = boost::lexical_cast<double>(results[i][4]);
+ obj.sequence = boost::lexical_cast<double>(results[i][5]);
playbackShared->playbackQueue.push_back(obj);
}
- g_timeout_add(0,getNextEvent,playbackShared);
+ g_timeout_add(0, getNextEvent, playbackShared);
}
void DatabaseSink::initDb()
bool operator ==(const DBObject & other) const
{
- return (key == other.key && source == other.source && zone == other.zone);
+ return (key == other.key && source == other.source && zone == other.zone &&
+ value == other.value && sequence == other.sequence && time == other.time);
}
bool operator != (const DBObject & other)