2015-02-24 00:34:42 +03:00
|
|
|
#ifndef JOBINFO_H
|
|
|
|
#define JOBINFO_H
|
|
|
|
|
|
|
|
#include <cpprest/json.h>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
#include "TaskInfo.h"
|
|
|
|
|
|
|
|
namespace hpc
|
|
|
|
{
|
|
|
|
namespace data
|
|
|
|
{
|
|
|
|
struct JobInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JobInfo(int jobId) : JobId(jobId) { }
|
|
|
|
|
2015-02-24 14:14:14 +03:00
|
|
|
web::json::value ToJson() const;
|
2015-02-24 00:34:42 +03:00
|
|
|
|
|
|
|
int JobId;
|
2015-02-25 02:02:39 +03:00
|
|
|
std::map<int, std::shared_ptr<TaskInfo>> Tasks;
|
2015-02-24 00:34:42 +03:00
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // JOBINFO_H
|