gutopia-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[rgui-dev] About output (thoughts)


From: Massimiliano Mirra
Subject: [rgui-dev] About output (thoughts)
Date: Fri, 16 Aug 2002 04:15:46 +0200
User-agent: Mutt/1.3.28i

The meta controller [term (c) 2002 Tom Sawyer :-)] will, at one point
or another, have to poll information from the model that must be
presented to the user.

The meta controller would not know whether the message has to be
written to stdout, to a requester, to a log, and whether it should be
written in big or small characters, black or read, or the name of the
application should appear along with the message.  In short, it would
not know the style and means of the output.

However it would know things such as the type and the importance of
the output, e.g. error message, warning, data result.

I propose that the meta controller package every output message in
descendents of an OutputMessage class, such as ErrorMessage,
WarningMessage, ResultMessage, DebugMessage...  Then, based on runtime
parameters, the backend would decide how to present that message.  If
the application is running in a console, a DebugMessage might be shown
on stderr or logged or both; if it is running in a window system, it
might be shown in a text widget.

Sounds fine?

Massimiliano




reply via email to

[Prev in Thread] Current Thread [Next in Thread]