constrcuteur parse json
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
#define STEP_H
|
||||
#include <QString>
|
||||
#include <QTextStream>
|
||||
#include <iostream>
|
||||
#include <QJsonObject>
|
||||
#include <QList>
|
||||
using namespace std;
|
||||
class Step
|
||||
{
|
||||
|
||||
@@ -9,14 +13,19 @@ private:
|
||||
QString title;
|
||||
float latitude;
|
||||
float longitude;
|
||||
QString text;
|
||||
int response;
|
||||
QList<QString> personnage;
|
||||
QList<QString> texte;
|
||||
|
||||
public:
|
||||
Step();
|
||||
Step(QTextStream &in);
|
||||
Step(QJsonObject &in);
|
||||
void setLatitude(int degree,float minute,QChar NS);
|
||||
void setLongitude(int degree,float minute,QChar EW);
|
||||
QString getTitle() const;
|
||||
float getLatitude() const;
|
||||
float getLongitude() const;
|
||||
int getResponse() const;
|
||||
};
|
||||
|
||||
#endif // STEP_H
|
||||
|
||||
Reference in New Issue
Block a user