26 #include <core/MACoreTypes.hpp> 27 #include <types/MARobotState.hpp> 29 #include <MCBinaryData.hpp> 34 #include <boost/shared_ptr.hpp> 50 static const QString NumberGameResultsID =
"NumberGameResults";
53 typedef std::pair<float, float> FloatPair;
56 typedef QVector<MCBinaryData> BinaryDataList;
59 typedef QVector<int> IntList;
62 typedef boost::shared_ptr<MARobotState> RobotStatePtr;
64 typedef MC::BinaryDataSPtr ImagePtr;
66 typedef boost::shared_ptr<QStringList> LogMessagesPtr;
69 typedef boost::shared_ptr<MPRecord> RecordPtr;
71 typedef QVector<RecordPtr> RecordPtrList;
74 typedef MC::BinaryDataSPtr PacketPtr;
76 typedef QVector<PacketPtr> PacketPtrList;
79 typedef QMap<int, RecordPtr> RecordPtrMap;
82 typedef QVector<float> FloatList;
85 typedef QVector<double> DoubleList;
88 typedef QVector<DoubleList> DoubleTable;
91 typedef QVector<bool> BooleanList;
94 typedef QVector<int> IntList;
97 typedef QMap<qint64, QString> LogEntryMap;
100 typedef QVector<RobotStatePtr> RobotStatePtrList;
103 typedef QVector<RobotStatePtrList> RobotStatePtrTable;
150 template <
typename U,
typename T>
151 std::vector<std::vector<T> > MPConvertQtTableToStdTable(
const U& qt_table)
153 std::vector<std::vector<T> > ResultTable;
155 for (
typename U::const_iterator Iter = qt_table.begin();
156 Iter != qt_table.end(); ++Iter)
158 ResultTable.push_back((*Iter).toStdVector());
226 const MP::RecordPtrList& GetRecords()
const;
235 const MP::PacketPtrList& GetPackets()
const;
244 bool IsEmpty()
const;
262 MA::IntIntSortedMap AddDataFromPacket(
MCBinaryData& packet);
MP::PacketPtr Packet
Packet pointer.
MC::IntList RecordIDs
IDs of the recovered records.
Collected data with portable storage functions.
MP::RobotStatePtr RobotState
Stored robot state.
MP::ImagePtr Image
Stored image.
Recovered records struct.
MC::BinaryDataSPtr RobotStateBinaryData
Stored robot state binary data.
MCBinaryData * MPDecodeImage(const MCBinaryData &binary_data)
Decode a jpeg image from AIBO.
MP::PacketPtrList Packets
Packet list.
MP::RecordPtrList Records
Record list.
MC::BinaryDataSPtr SoundData
Stored sound data.
QJsonObject * MPConvertCollectedDataToJsonQuery(MACollectedData &collected_data)
Convert the collected data in JSON object for query.
QJsonObject * MPConvertCollectedDataToJson(MACollectedData &collected_data)
Convert the collected data in JSON object.
Records container struct.
MA::IntIntSortedMap TimestampColorMap
Timestamp-color map.
static std::string RobotStateVariableMap
Cached variable map for robot state decoding.
Base class for the data exchange of the elements.
MA::IntIntSortedMap IDTimestampMap
ID-timestamp map.
MP::LogMessagesPtr LogMessages
Stored log messages.
Robot state record struct.
#define MSDATA_FUNCTIONS(data_class_name)
MSData macro to declare the copy assignment operator in the descendants.
MACollectedData * MPConvertJsonToCollectedData(QJsonObject &json_object)
Convert a JSON object back to collected data.