ARIA-Users
Date Index
Thread Index
Re: [Aria-users] how to print data before Escape
- To: aria-users@xxxxxxxxxxxxxx
- Subject: Re: [Aria-users] how to print data before Escape
- From: Reed Hedges <reed@xxxxxxxxxxxxxxxx>
- Date: Tue, 27 May 2008 09:04:49 -0400
- Cc: aria-users@xxxxxxxxxxxxxxxx
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=UTF-8; format=flowed
- Delivered-To: aria-archives@activmedia.com
- Delivered-To: aria-users@server.local.net
- In-Reply-To: <637955.26457.qm@web28414.mail.ukl.yahoo.com>
- References: <637955.26457.qm@web28414.mail.ukl.yahoo.com>
- Resent-Date: Tue, 27 May 2008 10:08:05 -0400 (EDT)
- Resent-From: aria-users@xxxxxxxxxxxxxx
- Resent-Message-ID: <NeWAoB.A.kRF.FXBPIB@server.activmedia.com>
- Resent-Reply-To: aria-users@activmedia.com
- Resent-Sender: aria-users-request@xxxxxxxxxxxxxx
- User-Agent: Mozilla-Thunderbird 2.0.0.14 (X11/20080509)
Firman Wahyudi wrote:
> i want to make program that will print data to file before program exit.
> I use ArKeyHandler to make program exit when i press ESC..
> Where should I call the printToFile function so that program write to
> file first before it exit.
ArKeyHandler uses Aria::exit() to exit the program. Before exiting, Aria::exit()
calls some callback functions. You can register these callback functions with
the static Aria::addExitCallback() method.
Another way is to call your function in the destructor of an instantiated
object, this is useful if you happen to be using a class to encapsulate your
file printing behavior.
Reed