My WebLink
|
Help
|
About
|
Sign Out
Home
Browse
Search
CRDSS_Task1_05-11_DocumentationofRoutinesUsedinDevelopment
CWCB
>
Decision Support Systems
>
DayForward
>
CRDSS_Task1_05-11_DocumentationofRoutinesUsedinDevelopment
Metadata
Thumbnails
Annotations
Entry Properties
Last modified
9/25/2011 10:18:53 AM
Creation date
5/30/2008 2:32:32 PM
Metadata
Fields
Template:
Decision Support Systems
Title
CRDSS Task 1.05-11 - Study of System Integration Issues Documentation - Documentation of Routines Used in Development
Description
This memorandum discusses the issues relating to documentation of routines used in development.
Decision Support - Doc Type
Task Memorandum
Date
5/10/1994
DSS Category
DMI Utilities
DSS
Colorado River
Basin
Colorado Mainstem
Contract/PO #
C153658, C153727, C153752
Grant Type
Non-Reimbursable
Bill Number
SB92-87, HB93-1273, SB94-029, HB95-1155, SB96-153, HB97-008
Prepared By
Riverside Technology inc.
There are no annotations on this page.
Document management portal powered by Laserfiche WebLink 9 © 1998-2015
Laserfiche.
All rights reserved.
/
4
PDF
Print
Pages to print
Enter page numbers and/or page ranges separated by commas. For example, 1,3,5-12.
After downloading, print the document using a PDF reader (e.g. Adobe Reader).
Show annotations
View images
View plain text
** DateAuthorComment <br />** 3-9-94Steven A. Malers, RTiFirst version of routine. <br />** 5-1-94SAMFixed bug where only first <br />**10 points were returned. <br />** <br />** VariableI/ODescription <br />** errcodeGError code. <br />** i, j, kLLoop counters. <br />** nptsI/OOn input, size of "stage" and "q", <br />**Lon output, the # of points in curve. <br />** ptLGeneric string pointer. <br />** stageOStage values. <br />** stationIName of station of interest. <br />** qOFlow values for stage. <br />*/ <br />int GetRatingCurve (char *station, int *npts, float *stage, <br />float *q ) <br />{inti, j, k; <br />char*pt; <br />... <br />} <br />Although the exact format of the comments is not critical, the items in the comments are important. <br />Comments should span up to 80 columns but no more. The notes provide a description of the <br />routine. Numbered notes are used so that specific items can be easily modified or deleted without <br />having to reformat a paragraph of information. The history section allows future developers to track <br />down the author for a particular routine. The variable dictionary must contain a description of every <br />variable in the routine. This makes it much easier to modify the routine in the future and also forces <br />lint <br />the author to clean the code of unneeded variables (the program and software such as CSU's <br />Purify <br />copy of will be used to help find these). <br />Variables will be alphabetized, both in the documentation section and when declared (variables in a <br />function argument list should not be alphabetized because the order is often determined by I/O and <br />use). The variable description section will also indicate whether a variable is input (I), output (O), <br />both input and output (I/O), local (L) or global (G). <br />Use only one declaration line for each type of variable. For example, do not break the <br />inti, j, k; <br />line into three lines <br />inti; <br />intj; <br />intk; <br />This format adds more text for the eye to sort through. <br />Comments within code should consist of explanations that are thorough yet concise and should be <br />readable by developers other than the programmer. <br />2 <br />A275 05.10.94 1.05-11 Malers <br />
The URL can be used to link to this page
Your browser does not support the video tag.