Ada Function for "logMsg"

This is a discussion on Ada Function for "logMsg" within the ADA forums in Programming Languages category; Some of our Ada code runs on VxWorks, and calls logMsg. When testing the code in a simulation environment (Ms Windows or Linux), we use Ada code to simulate the VxWorks calls. We are looking for an Ada function that will parse the first (string) arg to logMsg and substitute the other arg's as appropriate, i.e. operate like the real logMsg, using text_io.put or something similar to print it out. Anybody? thanks, Peter...

Go Back   Application Development Forum > Programming Languages > ADA

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-24-2008, 09:50 PM
richtmyer@cox.net
Guest
 
Default Ada Function for "logMsg"

Some of our Ada code runs on VxWorks, and calls logMsg. When testing
the code in a simulation environment (Ms Windows or Linux), we use Ada
code to simulate the VxWorks calls. We are looking for an Ada function
that will parse the first (string) arg to logMsg and substitute the
other arg's as appropriate, i.e. operate like the real logMsg, using
text_io.put or something similar to print it out.

Anybody?

thanks,
Peter
Reply With Quote
  #2  
Old 07-26-2008, 07:59 PM
richtmyer@cox.net
Guest
 
Default Re: Ada Function for logMsg or printf

Actually, an Ada version of printf would be sufficient, just a little
modification needed.

thanks
Reply With Quote
  #3  
Old 07-27-2008, 01:47 AM
tmoran@acm.org
Guest
 
Default Re: Ada Function for logMsg or printf

>Actually, an Ada version of printf would be sufficient,

Won't intermixed text and 'image do what you want, or do you actually
need format control? In the latter case, a modest set of simple
function i_image(value : integer; format : string) return string;
function f_image(value : float;
width, precision : positive;
left_adjust : boolean := true);
function f_image(value : long_float;
width, precision : positive;
left_adjust : boolean := true);
style routines ought to do the job, no?
Reply With Quote
  #4  
Old 07-27-2008, 07:33 AM
richtmyer@cox.net
Guest
 
Default Re: Ada Function for logMsg or printf

On Jul 27, 1:47*am, tmo...@acm.org wrote:
> >Actually, an Ada version of printf would be sufficient,

>
> Won't intermixed text and 'image do what you want, ...


Yep, but if someone has already written it, I won't have to.
Reply With Quote
  #5  
Old 07-28-2008, 03:52 AM
Markus Schoepflin
Guest
 
Default Re: Ada Function for logMsg or printf

Fionn Mac Cumhaill wrote:
> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtmyer@cox.net wrote:
>
>> On Jul 27, 1:47 am, tmo...@acm.org wrote:
>>>> Actually, an Ada version of printf would be sufficient,
>>> Won't intermixed text and 'image do what you want, ...

>> Yep, but if someone has already written it, I won't have to.

>
> Been done.
> http://www.adapower.com/index.php?Co...daLibs&CID=375


This looks interesting, unfortunately pressing the download link gives a
404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
on this server.

Markus
Reply With Quote
  #6  
Old 07-31-2008, 06:35 AM
richtmyer@cox.net
Guest
 
Default Re: Ada Function for logMsg or printf

On Jul 28, 3:52*am, Markus Schoepflin <nos...@no.spam> wrote:
> Fionn Mac Cumhaill wrote:
> > On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:

>
> >> On Jul 27, 1:47 am, tmo...@acm.org wrote:


>> http://www.adapower.com/index.php?Co...daLibs&CID=375

>
> This looks interesting, unfortunately pressing the download link gives a
> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
> on this server.
>
> Markus


Yeah, I tried to join the AdaPower site but no luck. I emailed the
admin but
no reply. The "latest" of the "latest Additions" is dated in 2005.
Many
of the links are no longer valid. I Also emailed the author of the
Formatted_IO, but the message bounced back.

Am looking for other copies on the web, but no luck yet.

Anybody have a copy?
Reply With Quote
  #7  
Old 07-31-2008, 06:44 AM
Georg Bauhaus
Guest
 
Default Re: Ada Function for logMsg or printf

richtmyer@cox.net schrieb:
> On Jul 28, 3:52 am, Markus Schoepflin <nos...@no.spam> wrote:
>> Fionn Mac Cumhaill wrote:
>>> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:
>>>> On Jul 27, 1:47 am, tmo...@acm.org wrote:

>
>>> http://www.adapower.com/index.php?Co...daLibs&CID=375

>> This looks interesting, unfortunately pressing the download link gives a
>> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
>> on this server.


> Anybody have a copy?



Maybe Ada.Text_IO.Editing can fill the gap?

--
Georg Bauhaus
Y A Time Drain http://www.9toX.de
Reply With Quote
  #8  
Old 08-01-2008, 04:19 AM
Markus Schoepflin
Guest
 
Default Re: Ada Function for logMsg or printf

richtmyer@cox.net wrote:
> On Jul 28, 3:52 am, Markus Schoepflin <nos...@no.spam> wrote:
>> Fionn Mac Cumhaill wrote:
>>> On Sun, 27 Jul 2008 04:33:39 -0700 (PDT), richtm...@cox.net wrote:
>>>> On Jul 27, 1:47 am, tmo...@acm.org wrote:

>
>>> http://www.adapower.com/index.php?Co...daLibs&CID=375

>> This looks interesting, unfortunately pressing the download link gives a
>> 404: The requested URL /adapower1/reuse/Formatted_Output.zip was not found
>> on this server.

>
> Am looking for other copies on the web, but no luck yet.
>
> Anybody have a copy?


Found something:
http://web.archive.org/web/*/http://...ted_Output.zip

But seems like the archive is corrupt... or I don't have the right tool to
unpack it.

Markus
Reply With Quote
  #9  
Old 08-01-2008, 09:24 AM
Jeffrey R. Carter
Guest
 
Default Re: Ada Function for logMsg or printf

Markus Schoepflin wrote:
>
> But seems like the archive is corrupt... or I don't have the right tool
> to unpack it.


Win XP can read the file OK.

--
Jeff Carter
"I didn't squawk about the steak, dear. I
merely said I didn't see that old horse
that used to be tethered outside here."
Never Give a Sucker an Even Break
103
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:53 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.