///////////////////////////////////////////////////////////////////// // PixController.cxx ///////////////////////////////////////////////////////////////////// // // 08/04/03 Version 1.0 (PM) // Initial release // #include "PixController/PixController.h" #include "PixController/RodPixController.h" #include "PixController/TpllPixController.h" #include "PixController/USBPixController.h" #include "PixConfDBInterface/PixConfDBInterface.h" using namespace PixLib; PixController* PixController::make(PixModuleGroup &grp, DBInquire *dbInquire, std::string type) { PixController *ctrl = NULL; if (type == "RodPixController") { ctrl = new RodPixController(grp, dbInquire); } else if (type == "TpllPixController") { ctrl = new TpllPixController(grp, dbInquire); } else if (type == "USBPixController") { ctrl = new USBPixController(grp, dbInquire); } return ctrl; } PixController* PixController::make(PixModuleGroup &grp, std::string type) { PixController *ctrl = NULL; if (type == "RodPixController") { ctrl = new RodPixController(grp); } else if (type == "TpllPixController") { ctrl = new TpllPixController(grp); } else if (type == "USBPixController") { ctrl = new USBPixController(grp); } return ctrl; }