Laserfiche WebLink
<br />tHHJtJ36 <br /> <br />freePointFlowTable () frees all memory associated for the supplied point <br />flow record. <br /> <br />DurnpRowTi tIe () outputs the data specification line containing a description of <br />the fields output in the data portion of the point flow output file. <br /> <br />GetDai lyStrearnflowValue ( ) extracts the month, day, and year from the <br />supplied date and forms the basis of a stream flow query. All streamflow values for the <br />date are retrieved (using QueryStrearnflowlnit and QueryStrearn- <br />flowNext) and averaged using a weighted averaging scheme. <br /> <br />DurnpPointFlowHeaderToFile () outputs the header (first) portion of the <br />point flow output file for the supplied point flow record. Included are the identification <br />line (with reach 10, start and end dates). The reach definition section (with the <br />description of the items in the file) and the data spe<;ification line (see DurnpRow- <br />Ti tle). <br /> <br />DumpPointFlowRowToFile () outputs all of the data for the supplied row to <br />the point flow output file, which requires reading all information sheet rows for the <br />item (calling QueryWISRowsRangelni t () and QueryWISRows- <br />RangeNext ( )) , recomputing the totals, and computing the daily streamflow <br />values if the item is a streamgauge (by calling GetDailyStream- <br />flowValue ()). <br /> <br />CreatePointFlowFileSave () is a UNIX-only function which prompts the <br />user for the filename, retrieves the start and end dates from the Preference dialog and <br />creates the exported file by calling CreatePointPlowFile (). <br /> <br />CreatePointFlowFile () is the main entry point to the point flow subsystem <br />which opens a temporary file and generates the point flow output file for the supplied <br />reach and dates. This routine is a DMI function used for creating the file sent to the <br />Pc. This function works by: <br /> <br />I. Creating an empty point flow table by calling CreateErnptyPoint- <br />FlowTable (). <br /> <br />2. Opening a temporary file. <br /> <br />3. Outputing the header information by calling DumpPointFlowHeaderTo- <br />File (). <br /> <br />4. For each row in the point flow table, outputing the row by calling Dump Po i n t- <br />FlowRowToFile () passing the start and end dates. <br /> <br />5. Releasing all dynamic memory by calling freePointFlowTable ( ) . <br /> <br />1.7 Client-Server Implementation- <br />Communications <br /> <br />A separate UNIX server application runs when users dial in from a PC. This applica- <br />tion contains all the functionality of the main UNIX application including the DMI, <br />but is stripped of all the Motif code so the executable is smaller. The UNIX server <br />application consists of the simplified version of the main UNIX application, plus a <br />communications component that sends data to and receives data from the PC. <br /> <br />39 <br />