RTC Toolkit  1.0.0
Typedefs | Functions | Variables
cameraFactory.cpp File Reference

Implementation of camera factory. More...

#include "cameraFactory.hpp"
#include "genericCamera.hpp"
#include "lisaCamera.hpp"
#include <memory>
#include <map>
#include <functional>
#include <boost/pointer_cast.hpp>

Typedefs

typedef std::function< std::unique_ptr< FitsConverterIf >const std::string &, const bool)> CameraFactory
 

Functions

std::unique_ptr< FitsConverterIfGetCamera (const std::string &name, const std::string &directory, const bool split_files)
 Factory for camera from camera string. More...
 
std::vector< std::string > ListCameras ()
 Get all available cameras. More...
 

Variables

const std::map< std::string, CameraFactoryCAMERAS
 

Detailed Description

Implementation of camera factory.

Typedef Documentation

◆ CameraFactory

typedef std::function<std::unique_ptr<FitsConverterIf>const std::string&, const bool)> CameraFactory

Function Documentation

◆ GetCamera()

std::unique_ptr<FitsConverterIf> GetCamera ( const std::string &  name,
const std::string &  directory,
const bool  split_files 
)

Factory for camera from camera string.

Parameters
nameName of the camera
directoryOutput directory for the FITS files.
split_filesIf true, split samples into extra files.

◆ ListCameras()

std::vector<std::string> ListCameras ( )

Get all available cameras.

Variable Documentation

◆ CAMERAS

const std::map<std::string, CameraFactory> CAMERAS
Initial value:
= {
{"generic", &MakeCamera<GenericCamera>},
{"lisa", &MakeCamera<LisaCamera>},
}