comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: zLibAda vs ZipAda (which should I use, if any)?
Date: Fri, 26 Aug 2016 08:16:15 -0700 (PDT)
Date: 2016-08-26T08:16:15-07:00	[thread overview]
Message-ID: <7f1ca2e7-b2dc-4158-a7ab-4447f6fa98f9@googlegroups.com> (raw)
In-Reply-To: <2e60067a-2169-4ef2-a619-d23f6dfc1ea1@googlegroups.com>

On Friday, August 26, 2016 at 4:23:11 PM UTC+2, Aurele wrote:
> > In this case, it is possible with UnZip.Streams. 
> 
> I started looking at UnZip this morning. Thanks!    I looked at Globe_3D for an example but the UnZip function there seems tightly integrated with Globe_3D's drawing/GL setup features.

I'm afraid you are confused.
The GLOBE_3D library is using the Zip-Ada library (for managing textures and other items), but fortunately not the reverse...

> Have you never considered formally documenting Zip-Ada?

It depends on what you mean by "formally documenting", but there are commented package specifications, an introductory note (zipada.txt), small demos, tools, tests.
For instance there is a demo called Demo_UnZip which demonstrates UnZip.Streams. I'd start from there...

> > More specifically ?
> 
> Re the Traverse_Verbose information, for my requirement I mean, I'll need to filter out the directory and name information separately for listing (display) purpose (Zip entry: "texture\sky\blue.jpg" ==> "texture\sky\" and "blue", separately).

last_dot, last_slash: Natural:= 0;

for i in name'Range loop
  case name(i) is
    when '.'       => last_dot:= i;
    when '/' | '\' => last_slash:= i;
  end case;
end loop;

Or you can use Ada.Directories, there are functions to do these splits.


  reply	other threads:[~2016-08-26 15:16 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-25 20:17 zLibAda vs ZipAda (which should I use, if any)? Aurele
2016-08-25 21:02 ` Qun-Ying
2016-08-25 21:33 ` Jeffrey R. Carter
2016-08-25 22:07 ` Aurele
2016-08-25 23:07 ` Aurele
2016-08-25 23:43   ` gautier_niouzes
2016-08-25 23:55     ` Aurele
2016-08-26  0:18       ` gautier_niouzes
2016-08-26  1:44         ` Aurele
2016-08-26 12:36           ` gautier_niouzes
2016-08-26 14:23             ` Aurele
2016-08-26 15:16               ` gautier_niouzes [this message]
2016-08-26 15:46                 ` Jeffrey R. Carter
2016-08-26 16:05                 ` Aurele
2016-08-26 23:04                   ` Aurele
2016-08-27  5:30                     ` gautier_niouzes
2016-08-27 11:52                       ` Aurele
2016-08-27 16:31                         ` Aurele
2016-08-27 19:15                           ` gautier_niouzes
2016-08-27 19:33 ` Aurele
2016-08-27 20:16   ` Aurele
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox