hpcpack-linux-agent/nodemanager/data/JobInfo.h

29 строки
476 B
C++

#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) { }
web::json::value ToJson() const;
int JobId;
std::map<int, std::shared_ptr<TaskInfo>> Tasks;
protected:
private:
};
}
}
#endif // JOBINFO_H