void KEYCAPTUREOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"mode",P_INT,&mode); save_property(hFile,"findcode",P_INT,&findcode); save_property(hFile,"replacecode",P_INT,&replacecode); }
void FILE_READEROBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"filename",P_STRING,&filename); save_property(hFile,"format",P_INT,&format); save_property(hFile,"outports",P_INT,&outports); }
void INTEGRATEOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"ivalue",P_INT,&i_value); save_property(hFile,"imin",P_FLOAT,&min); save_property(hFile,"imax",P_FLOAT,&max); }
void SAMPLE_HOLDOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"hold",P_FLOAT,&hold); save_property(hFile,"trigmode",P_INT,&mode); save_property(hFile,"resetvalue",P_FLOAT,&resetvalue); }
void NEUROBITOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"test",P_INT,&test); save_property(hFile,"device",P_STRING,device); save_devctx(); }
void COM_WRITEROBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"command",P_INT,&command); save_property(hFile,"data1",P_INT,&data1); save_property(hFile,"data2",P_INT,&data2); save_property(hFile,"trigger",P_INT,&en_trigger); }
void MIXER4OBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"chn1vol",P_FLOAT,&chn1vol); save_property(hFile,"chn2vol",P_FLOAT,&chn2vol); save_property(hFile,"chn3vol",P_FLOAT,&chn3vol); save_property(hFile,"chn4vol",P_FLOAT,&chn4vol); save_property(hFile,"invmode",P_INT,&invmode); }
void PORTOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"triggermode",P_INT,&triggermode); save_property(hFile,"val0",P_INT,&val0); save_property(hFile,"val1",P_INT,&val1); save_property(hFile,"portaddress",P_INT,&portaddress); save_property(hFile,"portval",P_INT,&portval); }
void MAGNITUDEOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"type",P_INT,&filtertype); save_property(hFile,"order",P_INT,&order); save_property(hFile,"center",P_FLOAT,¢er); save_property(hFile,"width",P_FLOAT,&wid); save_property(hFile,"gain",P_INT,&gain); }
void AVIOBJ::save(HANDLE hFile) { save_object_basics(hFile,this); save_property(hFile,"avi-file",P_STRING,avifile); save_property(hFile,"wnd-top",P_INT,&top); save_property(hFile,"wnd-bottom",P_INT,&bottom); save_property(hFile,"wnd-left",P_INT,&left); save_property(hFile,"wnd-right",P_INT,&right); }
void MCIOBJ::save(HANDLE hFile) { WINDOWPLACEMENT wndpl; if (m_video) { GetWindowPlacement(m_video, &wndpl); left=wndpl.rcNormalPosition.left; right=wndpl.rcNormalPosition.right; top=wndpl.rcNormalPosition.top; bottom=wndpl.rcNormalPosition.bottom; } save_object_basics(hFile,this); save_property(hFile,"mci-file",P_STRING,mcifile); save_property(hFile,"wnd-top",P_INT,&top); save_property(hFile,"wnd-bottom",P_INT,&bottom); save_property(hFile,"wnd-left",P_INT,&left); save_property(hFile,"wnd-right",P_INT,&right); save_property(hFile,"upd_speed",P_INT,&upd_speed); save_property(hFile,"pos_center",P_INT,&pos_center); save_property(hFile,"play_once",P_INT,&play_once); }
void ARRAY3600OBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"comport",P_INT,&comport); save_property(hFile,"baudrate",P_INT,&baudrate); save_property(hFile,"connected",P_INT,&connected); save_property(hFile,"periodic",P_INT,&periodic); save_property(hFile,"period",P_INT,&period); save_property(hFile,"maxvoltage",P_INT,&maxvoltage); save_property(hFile,"maxcurrent",P_INT,&maxcurrent); save_property(hFile,"maxpower",P_INT,&maxpower); save_property(hFile,"address",P_INT,&address); save_property(hFile,"voltage",P_INT,&voltage); }
void KEYSTRIKEOBJ::save(HANDLE hFile) { int i; char sztemp[50]; save_object_basics(hFile, this); save_property(hFile,"numkeys",P_INT,&numkeys); for (i=0;i<numkeys;i++) { wsprintf(sztemp,"key%d:",i+1); save_property(hFile,sztemp,P_STRING,keylist[i]); } }
void TRANSLATEOBJ::save(HANDLE hFile) { int t; char sztemp[20]; save_object_basics(hFile, this); save_property(hFile,"points",P_INT,&points); for (t=0;t<points;t++) { wsprintf(sztemp,"pointx%d",t); save_property(hFile,sztemp,P_INT,&pointx[t]); wsprintf(sztemp,"pointy%d",t); save_property(hFile,sztemp,P_FLOAT,&pointy[t]); } }
void DOKUOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); remove_nl(); save_property(hFile,"text",P_STRING,text); apply_nl(); }
void BALLGAMEOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"speed",P_INT,&speed); save_property(hFile,"racket",P_INT,&racket); save_property(hFile,"best",P_INT,&best); save_property(hFile,"middle",P_INT,&reset_middle); save_property(hFile,"top",P_INT,&top); save_property(hFile,"left",P_INT,&left); save_property(hFile,"right",P_INT,&right); save_property(hFile,"bottom",P_INT,&bottom); }
void SIGNALOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"frequency",P_FLOAT,&frequency); save_property(hFile,"center",P_FLOAT,¢er); save_property(hFile,"gain",P_FLOAT,&gain); save_property(hFile,"phase",P_FLOAT,&phase); save_property(hFile,"noise",P_INT,&noise); save_property(hFile,"type",P_INT,&sigtype); save_property(hFile,"enable_in",P_INT,&enable_in); }
void FILTEROBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"name",P_STRING,name); save_property(hFile,"type",P_INT,&filtertype); save_property(hFile,"display-from",P_INT,&dispfrom); save_property(hFile,"display-to",P_INT,&dispto); save_property(hFile,"order",P_INT,&par0); save_property(hFile,"par1",P_FLOAT,&par1); save_property(hFile,"par2",P_FLOAT,&par2); }
BOOL save_settings(void) { HANDLE hFile; int t,x; char settingsfilename[256],midipname[256]; strcpy(settingsfilename,GLOBAL.resourcepath); strcat(settingsfilename,"brainbay.cfg"); write_logfile("saving program settings."); hFile = CreateFile(settingsfilename, GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile == INVALID_HANDLE_VALUE) return FALSE; save_property(hFile,"samplingrate",P_INT,&PACKETSPERSECOND); //save_property(hFile,"com-port",P_INT,&TTY.PORT); //save_property(hFile,"baudrate",P_INT,&TTY.BAUDRATE); //save_property(hFile,"devicetype",P_INT,&TTY.devicetype); save_property(hFile,"dialoginterval",P_INT,&GLOBAL.dialog_interval); save_property(hFile,"drawinterval",P_INT,&GLOBAL.draw_interval); save_property(hFile,"startup",P_INT,&GLOBAL.startup); save_property(hFile,"autorun",P_INT,&GLOBAL.autorun); save_property(hFile,"configfile",P_STRING,GLOBAL.configfile); save_property(hFile,"use_cvcapture",P_INT,&GLOBAL.use_cv_capture); x=0; for (t=0;t<GLOBAL.midiports;t++) if (MIDIPORTS[t].midiout) { x++; sprintf(midipname,"midiport%d",x); save_property(hFile,midipname,P_STRING,MIDIPORTS[t].portname); } save_property(hFile,"midiports",P_INT,&x); CloseHandle(hFile); return(TRUE); }
void THRESHOLDOBJ::save(HANDLE hFile) { float temp; save_object_basics(hFile, this); save_property(hFile,"play_interval",P_INT,&play_interval); save_property(hFile,"interval_len",P_INT,&interval_len); save_property(hFile,"gain",P_INT,&signal_gain); save_property(hFile,"from-input",P_FLOAT,&from_input); save_property(hFile,"to-input",P_FLOAT,&to_input); save_property(hFile,"and/or",P_INT,&op); save_property(hFile,"show-meter",P_INT,&showmeter); save_property(hFile,"only-rising",P_INT,&rising); save_property(hFile,"only-falling",P_INT,&falling); save_property(hFile,"usemedian",P_INT,&usemedian); save_property(hFile,"baseline",P_INT,&baseline); temp=(float)color; save_property(hFile,"color",P_FLOAT,&temp); temp=(float)bkcolor; save_property(hFile,"bkcol",P_FLOAT,&temp); temp=(float)fontcolor; save_property(hFile,"fontcol",P_FLOAT,&temp); temp=(float)fontbkcolor; save_property(hFile,"fontbkcol",P_FLOAT,&temp); save_property(hFile,"top",P_INT,&top); save_property(hFile,"left",P_INT,&left); save_property(hFile,"right",P_INT,&right); save_property(hFile,"bottom",P_INT,&bottom); save_property(hFile,"bigadapt",P_INT,&bigadapt); save_property(hFile,"smalladapt",P_INT,&smalladapt); save_property(hFile,"adaptinterval",P_INT,&adapt_interval); save_property(hFile,"barsize",P_INT,&barsize); save_property(hFile,"fontsize",P_INT,&fontsize); save_property(hFile,"wndcaption",P_STRING,wndcaption); }
void save_object_basics(HANDLE hFile, BASE_CL * actobj) { int t; char temp[100]; save_property(hFile,"xpos",P_INT,&(actobj->xPos)); save_property(hFile,"ypos",P_INT,&(actobj->yPos)); save_property(hFile,"inputports",P_INT,&(actobj->inports)); save_property(hFile,"outputports",P_INT,&(actobj->outports)); save_property(hFile,"tag",P_STRING,actobj->tag); for (t=1;t<=actobj->inports;t++) { sprintf(temp,"inport%ddesc",t); save_property(hFile,temp,P_STRING,actobj->in_ports[t-1].in_desc); sprintf(temp,"inport%ddim",t); save_property(hFile,temp,P_STRING,actobj->in_ports[t-1].in_dim); sprintf(temp,"inport%dmin",t); save_property(hFile,temp,P_FLOAT,&(actobj->in_ports[t-1].in_min)); sprintf(temp,"inport%dmax",t); save_property(hFile,temp,P_FLOAT,&(actobj->in_ports[t-1].in_max)); sprintf(temp,"inport%drange",t); save_property(hFile,temp,P_INT,&(actobj->in_ports[t-1].get_range)); } for (t=1;t<=actobj->outports;t++) { sprintf(temp,"outport%ddesc",t); save_property(hFile,temp,P_STRING,actobj->out_ports[t-1].out_desc); sprintf(temp,"outport%ddim",t); save_property(hFile,temp,P_STRING,actobj->out_ports[t-1].out_dim); sprintf(temp,"outport%dmin",t); save_property(hFile,temp,P_FLOAT,&(actobj->out_ports[t-1].out_min)); sprintf(temp,"outport%dmax",t); save_property(hFile,temp,P_FLOAT,&(actobj->out_ports[t-1].out_max)); sprintf(temp,"outport%drange",t); save_property(hFile,temp,P_INT,&(actobj->out_ports[t-1].get_range)); } }
void EVALOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"expression",P_STRING,expression); }
BOOL save_configfile(LPCTSTR pszFileName) { HANDLE hFile; int t; int act_type; write_logfile("saving design configuration: %s",(char *)pszFileName); hFile = CreateFile(pszFileName, GENERIC_WRITE, 0, NULL,CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if(hFile != INVALID_HANDLE_VALUE) { if (!IsWindow(ghWndToolbox)) GLOBAL.showtoolbox=-1; strcpy(GLOBAL.configfile,pszFileName); save_settings(); save_property(hFile,"objects",P_INT,&GLOBAL.objects); save_property(hFile,"main-top",P_INT,&GLOBAL.top); save_property(hFile,"main-left",P_INT,&GLOBAL.left); save_property(hFile,"main-right",P_INT,&GLOBAL.right); save_property(hFile,"main-bottom",P_INT,&GLOBAL.bottom); save_property(hFile,"anim-top",P_INT,&GLOBAL.anim_top); save_property(hFile,"anim-left",P_INT,&GLOBAL.anim_left); save_property(hFile,"anim-right",P_INT,&GLOBAL.anim_right); save_property(hFile,"anim-bottom",P_INT,&GLOBAL.anim_bottom); save_property(hFile,"design-top",P_INT,&GLOBAL.design_top); save_property(hFile,"design-left",P_INT,&GLOBAL.design_left); save_property(hFile,"design-right",P_INT,&GLOBAL.design_right); save_property(hFile,"design-bottom",P_INT,&GLOBAL.design_bottom); save_property(hFile,"tool-top",P_INT,&GLOBAL.tool_top); save_property(hFile,"tool-left",P_INT,&GLOBAL.tool_left); save_property(hFile,"tool-right",P_INT,&GLOBAL.tool_right); save_property(hFile,"tool-bottom",P_INT,&GLOBAL.tool_bottom); save_property(hFile,"showdesign",P_INT,&GLOBAL.showdesign); save_property(hFile,"showtoolbox",P_INT,&GLOBAL.showtoolbox); save_property(hFile,"autorun",P_INT,&GLOBAL.autorun); save_property(hFile,"minimized",P_INT,&GLOBAL.minimized); save_property(hFile,"comport",P_INT,&TTY.PORT); save_property(hFile,"bidirect",P_INT,&TTY.BIDIRECT); save_property(hFile,"connected",P_INT,&TTY.CONNECTED); save_property(hFile,"devicetype",P_INT,&TTY.devicetype); save_property(hFile,"samplingtype",P_INT,&TTY.samplingrate); save_property(hFile,"baudtype",P_INT,&TTY.BAUDRATE); save_property(hFile,"flow_control",P_INT,&TTY.FLOW_CONTROL); save_property(hFile,"captfilename",P_STRING,CAPTFILE.filename); save_property(hFile,"captfiletype",P_INT,&CAPTFILE.filetype); save_property(hFile,"captfileoffset",P_INT,&CAPTFILE.offset); save_property(hFile,"dialoginterval",P_INT,&GLOBAL.dialog_interval); save_property(hFile,"drawinterval",P_INT,&GLOBAL.draw_interval); save_property(hFile,"samplingrate",P_INT,&PACKETSPERSECOND); save_property(hFile,"end Object",P_END,NULL); for (t=0;t<GLOBAL.objects;t++) { act_type=objects[t]->type; save_property(hFile,"next Object",P_INT,&act_type); objects[t]->save(hFile); store_links(hFile,objects[t]); save_property(hFile,"end Object",P_END,NULL); } CloseHandle(hFile); return TRUE; } return FALSE; }
void SPELLEROBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"top",P_INT,&top); save_property(hFile,"left",P_INT,&left); save_property(hFile,"right",P_INT,&right); save_property(hFile,"bottom",P_INT,&bottom); save_property(hFile,"speed",P_INT,&speed); save_property(hFile,"press",P_INT,&press); save_property(hFile,"idle",P_INT,&idle); save_property(hFile,"mode",P_INT,&mode); save_property(hFile,"selections",P_INT,&selections); save_property(hFile,"wordfile",P_STRING,wordfile); save_property(hFile,"dictfile",P_STRING,dictfile); save_property(hFile,"autolearn",P_INT,&autolearn); save_property(hFile,"directsend",P_INT,&directsend); }
void COUNTEROBJ::save(HANDLE hFile) { float temp; save_object_basics(hFile, this); save_property(hFile,"mode",P_INT,&mode); save_property(hFile,"coutnervalue",P_FLOAT,&countervalue); save_property(hFile,"resetvalue",P_FLOAT,&resetvalue); save_property(hFile,"showcounter",P_INT,&showcounter); save_property(hFile,"fontsize",P_INT,&fontsize); temp=(float)fontcolor;; save_property(hFile,"fontcolor",P_FLOAT,&temp); temp=(float)bkcolor;; save_property(hFile,"bkcolor",P_FLOAT,&temp); save_property(hFile,"top",P_INT,&top); save_property(hFile,"left",P_INT,&left); save_property(hFile,"right",P_INT,&right); save_property(hFile,"bottom",P_INT,&bottom); save_property(hFile,"integer",P_INT,&integer); save_property(hFile,"wndcaption",P_STRING,wndcaption); }
void CAMOBJ::save(HANDLE hFile) { save_object_basics(hFile,this); save_property(hFile,"interval",P_INT,&interval); save_property(hFile,"autorestore",P_INT,&autorestore); save_property(hFile,"dist_threshold",P_FLOAT,&dist_threshold); save_property(hFile,"angle_threshold",P_FLOAT,&angle_threshold); save_property(hFile,"threshold_time",P_INT,&threshold_time); save_property(hFile,"pt1_xpos",P_FLOAT,&PT1_xpos); save_property(hFile,"pt1_ypos",P_FLOAT,&PT1_ypos); save_property(hFile,"pt2_xpos",P_FLOAT,&PT2_xpos); save_property(hFile,"pt2_ypos",P_FLOAT,&PT2_ypos); save_property(hFile,"mode",P_INT,&mode); save_property(hFile,"showlive",P_INT,&showlive); save_property(hFile,"tracking",P_INT,&enable_tracking); save_property(hFile,"trackface",P_INT,&trackface); save_property(hFile,"archive",P_STRING,videofilename); }
void DEVIATIONOBJ::save(HANDLE hFile) { save_object_basics(hFile,this); save_property(hFile,"interval",P_INT,&interval); }
void EDF_READEROBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"filename",P_STRING,&filename); save_property(hFile,"offset",P_INT,&offset); }
void TCP_RECEIVEOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"host",P_STRING,&host); save_property(hFile,"header",P_STRING,&edfheader); }
void CONSTANTOBJ::save(HANDLE hFile) { save_object_basics(hFile, this); save_property(hFile,"value",P_FLOAT,&value); }