21#ifndef __STUDY_JOB_AGGREGATOR_JOB_H__
22#define __STUDY_JOB_AGGREGATOR_JOB_H__
27#include <yuni/core/string.h>
28#include <yuni/io/file.h>
29#include <yuni/job/job.h>
30#include <yuni/job/queue/service.h>
32#include "antares/solver/ts-generator/xcast/studydata.h"
41 using Ptr = std::shared_ptr<JobFileReader>;
92 bool prepareJumpTable();
99 void readLine(
const AnyString& line, uint y);
104 void resizeJumpTable(uint newsize);
108 using TemporaryColumnData = CellData*;
110 using BufferType = Yuni::CString<65536>;
112 using JumpTable = std::vector<uint>;
118 Yuni::IO::File::Stream pFile;
120 Yuni::String pFilename;
122 JumpTable pJumpTable;
128 TemporaryColumnData* pTmpResults;
135extern Yuni::Job::QueueService queueService;
std::shared_ptr< DataFile > Ptr
The most suitable smart pointer.
Definition datafile.h:34
uint year
The current year (zero-based)
Definition job.h:64
std::shared_ptr< JobFileReader > Ptr
The most suitable smart pointer.
Definition job.h:41
JobFileReader()
Default constructor.
Definition job.cpp:45
static bool RemainJobsToExecute()
Get if some jobs remain.
Definition job.cpp:40
StudyData::Ptr studydata
Study data.
Definition job.h:70
virtual void onExecute() override
Execute the job.
Definition job.cpp:73
Output::Ptr output
Output.
Definition job.h:68
Yuni::String path
Path.
Definition job.h:72
DataFile::Ptr datafile
Data file.
Definition job.h:66
virtual ~JobFileReader()
Destructor.
Definition job.cpp:54
std::shared_ptr< Output > Ptr
The most suitable smart pointer.
Definition output.h:36
std::shared_ptr< StudyData > Ptr
The most suitable smart pointer.
Definition studydata.h:34