mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
26 lines
580 B
C++
26 lines
580 B
C++
#include "globals.h"
|
|
#include "flags.h"
|
|
#include "dataspec.h"
|
|
#include "sector.h"
|
|
#include "sectorset.h"
|
|
#include "imagereader/imagereader.h"
|
|
#include "utils.h"
|
|
#include "fmt/format.h"
|
|
#include "lib/config.pb.h"
|
|
#include <algorithm>
|
|
#include <ctype.h>
|
|
|
|
std::unique_ptr<ImageReader> ImageReader::create(const Config_InputFile& config)
|
|
{
|
|
if (config.has_img())
|
|
return ImageReader::createImgImageReader(config);
|
|
else
|
|
Error() << "bad input file config";
|
|
return std::unique_ptr<ImageReader>();
|
|
}
|
|
|
|
ImageReader::ImageReader(const Config_InputFile& config):
|
|
_config(config)
|
|
{}
|
|
|