5 #include <rtsSystems.h>
7 #include <DAQ_READER/daqReader.h>
8 #include <DAQ_READER/daq_dta.h>
12 extern int ftp_reader(
char *m,
struct ftp_t *ftp, u_int driver) ;
14 const char *daq_ftp::help_string =
"FTP tst\n" ;
20 daq_det_factory::det_factories[FTP_ID] = this ;
34 LOG(DBG,
"FTP: rts_id %d, name %s",rts_id,name) ;
38 sfs_name = name = rts2name(rts_id) ;
40 if(caller) caller->insert(
this, rts_id) ;
44 LOG(DBG,
"%s: constructor: caller %p",name,caller) ;
49 LOG(DBG,
"%s: destructor",name) ;
50 if(caller) caller->de_insert(rts_id) ;
58 daq_dta *daq_ftp::get(
const char *bank,
int c1,
int c2,
int c3,
void *p1,
void *p2)
61 if(!present)
return 0 ;
63 if(strcmp(bank,
"*")==0) bank =
"legacy" ;
65 if(strcasecmp(bank,
"legacy") != 0) {
66 LOG(ERR,
"%s: unknown bank %s",name,bank) ;
70 return handle_legacy() ;
75 daq_dta *daq_ftp::handle_legacy()
79 legacy->create(1,
"ftp_t",rts_id,DAQ_DTA_STRUCT(
ftp_t)) ;
84 ftp_reader(caller->mem, ftp_p, m_Debug) ;
86 legacy->finalize(1,0,0,0) ;