EW_Output
EW_Output
ew
1998 12-05
CLASS
EW_Output - general purpose output object
SYNOPSIS
Class EW_Output
provides general purpose system non-specific output.
It uses OS-abstracted routines from the
Operating
System
Dependency
(OSD) library.
EW defines a global EW_Output named ewGlobalOutput
which it previously used for the ewPrint() function.
ewPrint() now uses the logging mechanism from the
Well
Behaved
Application
(WBA) library.
PUBLIC MEMBER FUNCTIONS
long Open(void)
long Close(void)
Open/Close the OS-dependent items used to express the output.
long SetFlags(unsigned long flags)
unsigned long GetFlags(void)
Set/Get the flags associated with the output.
The current acceptable OR'ed options are:
| OSD_OUT_FILE |
Send output to a log file.
|
| OSD_OUT_STDOUT |
Send output to a standard out.
|
| OSD_OUT_STDERR |
Send output to a standard error.
|
| OSD_OUT_MESSAGEBOX |
Send output to a a message window.
|
long SetFilename(char *filename)
Set the filename used for the output log when such option is activated.
FILES
wds/error.h Error-handling header file
SEE ALSO
EW_Intro(3),
ewPrint(3)
NOTES
This mechanism is present and partially active,
but outdated by a WBA-based mechanism.
You should still use the EW_PRINT() macro to the ewPrint() log handler.
Currently, message boxes only appear on applications running on
Win32 environments.