lundi 20 avril 2015

Best way to store data that's constantly being accessed

Until now I've been using structs to store data and then putting these structs inside a QMap.

struct Event {
    QString languageCode;
    QString message;
    QMap<QString, QString> messages;
    QString prop;
    qint64 dateSec;
    qint64 dateUsec;
    qint64 startDateSec;
    qint64 startDateUsec;
};

QMap<QString, Event> eventList;

Is this the best approach to store data that's constantly being accessed and sometimes being modified?

Aucun commentaire:

Enregistrer un commentaire