24 #include "MPTypes.hpp" 26 #include <MSElement.hpp> 28 #include <boost/scoped_ptr.hpp> 29 #include <boost/serialization/access.hpp> 57 typedef QMap<QString, MPVariableDescriptor> VariableMap;
67 friend class boost::serialization::access;
75 std::string GetVariableMapStr()
const;
76 QString GetSessionDirectory()
const;
77 void SetSessionDirectory(
const QString& directory);
78 void SyncQueryCache();
79 void OptimizeQueryCache();
82 static QString GetSessionCacheFileName(
const QString& directory);
83 static MPSessionMemory* Load(
const QString& directory,
bool only_cache =
false);
84 void SaveToFile(
const QString& file_name);
85 void EnableAnsiToQtMarkup();
86 bool IsAnsiConvertedToQtMarkup();
87 int GetMinCursorPosition();
88 int GetMaxCursorPosition();
91 int GetCursorPosition();
92 const MP::LogEntryMap& GetFullAiboLog();
93 const MA::IntIntSortedMap& GetStreamMarkers();
94 QStringList GetVariableMap();
96 MC::IntList GetMissingTimestamps();
99 MP::RobotStatePtrList GetRobotStates();
100 MP::RobotStatePtrList GetRobotStates(
int start_time,
int end_time);
101 MC::BinaryDataSPtr GetAudioData(
int start_time,
int end_time);
102 MA::BinaryDataSPtrList GetRobotStatesData(
int start_time,
int end_time);
103 void GetStateTimeSerie(
const QString& variable,
int start,
int end,
104 MP::DoubleList& times, MP::DoubleList& serie,
int upscale_value = 0);
105 bool IsMissingDataInRange(
int StartTime,
int EndTime);
106 MP::DoubleTable GetSamples(
const QString& variable,
const QString& log_start,
const QString& log_end,
107 MP::BooleanList& validity);
108 MP::DoubleTable GetValidSamples(
const QString& variable,
const QString& log_start,
109 const QString& log_end);
110 MP::RobotStatePtrTable GetRobotStates(
const QString& log_start,
const QString& log_end,
111 MP::BooleanList& validity);
112 MP::RobotStatePtrTable GetValidRobotStates(
const QString& log_start,
const QString& log_end);
115 void SetCursorPosition(
int milliseconds);
116 void IncrementCursor();
117 void DecrementCursor();
120 void FirstRobotStatesArrived();
123 virtual bool ProgressTasks(
bool be_hurry)
override;
125 template<
class Archive>
126 void serialize(Archive& archive,
const unsigned int version);
MPRecoveredPackets InputRecoveredPackets
Input variable of the recovered packets.
MPTimestampList NewMissingTimestamps
New missing timestamps.
MP::LogEntryMap LogCache
Log cache.
MPStreamMarkers NewStreamMarkers
New stream markers.
MPCursorPosition NewCursorPosition
New cursor position.
MP::BinaryDataList RobotStateCache
Robot state cache.
bool ConvertAnsiToQtMarkup
Whenever the log messages should be converted from Ansi to Qt markup.
MA::IntIntSortedMap StreamMarkers
Stream markers.
Recovered records struct.
MP::VariableMap VariableCache
Robot state variable cache.
Basic ancestor class of the elements.
QString DisplayName
Display name.
std::string VariableMapStr
Variable map string for robot state decoding.
MP::IntList RobotStateTimestamps
Robot state timestamp list.
float Magnitude
Magnitude.
boost::scoped_ptr< MCDataStorage > CacheStorage
Query cache data storage.
int CursorPosition
Cursor position (in milliseconds)
MPMissingPackets MissingPackets
Missing packets.
Data storage with file support.
Records container struct.
MPMissingPackets InputMissingPackets
Input variable of the missing packets.
MPRecordsContainer InputStates
Input variable.
QStringList VariableMap
Variable map.
MPTimestampList NewRecoveredTimestamps
New recovered timestamps.
QString SessionDirectory
Session directory.
MP::BinaryDataList ImageCache
Image cache.
int LastCursorPosition
Last cursor position (in milliseconds)
MP::BinaryDataList SoundDataCache
Sound data cache.
QString QueryCacheFileName
Query cache file name.
Support struct to store MANum<int> data in smaller place.
MP::FloatList Values
Values.
MPLogEntryMap NewLogEntries
New log entries.
bool CursorPositionChanged
Whenever the cursor position has been changed.