|
|
|
|
|
|
|
||
|
||
|
|
||
May 1999 |
Revision 1.01 |
|
Persistor Instruments Inc. |
© 1998 All rights reserved. |
|
The query/reply functions provide a variety of useful functions for interacting with an operator using console I/O.
|
Prototype: |
bool QRconfirm(char *prompt, bool defyes, bool crok); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true Yes replies. |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRchar(char *prompt, char *fmt, bool crok, char *reply, char *instr, bool uc); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRstring(char *prompt, char *fmt, bool crok, char *strbuf, short len); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRshort(char *prompt, char *fmt, bool crok, short *value, short min, short max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRushort(char *prompt, char *fmt, bool crok, ushort *value, ushort min, ushort max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRlong(char *prompt, char *fmt, bool crok, long *value, long min, long max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRulong(char *prompt, char *fmt, bool crok, ulong *value, ulong min, ulong max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRfloat(char *prompt, char *fmt, bool crok, float *value, float min, float max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRdouble(char *prompt, char *fmt, bool crok, double *value, double min, double max); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
|
|
Timing: |
TBD |
|
Prototype: |
bool QRtime(char *prompt, bool crok, struct tm *tm); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
Replies are accepted in the form:
HOURS<delim>MINUTES<delim>SECONDS |
|
Timing: |
TBD |
typedef enum { YYMMDD // ISO
, MMDDYY // US
, DDMMYY // European
} DateFieldOrder;
|
Prototype: |
bool QRdate(char *prompt, DateFieldOrder dfo, bool crok, struct tm *tm); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
Replies are accepted with: YEAR<delim>MONTH<delim>DAY (specifying enum
YYMMDD) <delim> may be any single comma, space, dash,
period, or slash. |
|
Timing: |
TBD |
typedef enum { YYMMDD // ISO
, MMDDYY // US
, DDMMYY // European
} DateFieldOrder;
|
Prototype: |
bool QRdatetime(char *prompt, DateFieldOrder dfo, bool crok, struct tm *tm); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
prompt is a zero terminated C string to display as
a prompt for the user. |
|
Returns: |
Returns true for all but query cancelled (CTRL-C typed). |
|
Notes: |
Replies are accepted with: YEAR<delim>MONTH<delim>DAY (specifying enum
YYMMDD) <delim> may be any single comma, space, dash,
period, or slash. |
|
Timing: |
TBD |
|
|
|
|
|
|
Tel: 508-759-6434 |
|
Fax: 508-759-6436 |
|
|
||