Subject: Re: Re:xp stat needed
From: Hubert Figuiere (hfiguiere@teaser.fr)
Date: Mon Nov 12 2001 - 03:43:43 CST
According to Mike Nordell <tamlin@algonet.se>:
> So what's holding us back from declaring a simple XAP class called
> FileSystem that only holds static member functions (as a surrogate for
> namespace) with function like
> bool isDirectory(const char* pszFsEntry);
>
> that is implemented in platform dependent XAP .cpp files?
And possible some XAP_File class that serves to reference a file accross
AbiWord calls. For example, instead of passing a path to an importer, pass a
XAP_File.... That allow abstracting files on OS where path use is
discouraged...
That class should not be to hard to implement.
Hub
>
> The Win32 MSVC CRT has a _stat function and AFAIK all unices has it (without
> the leading underscore), and for the platforms that does not have it...
> Well, they can implement it in their platform preferred way. For PDAs
> without directories it might be a problem though. :-)
>
> This could also be the place to put getFileSize, createDirecory and any and
> all such filesystem operations.
>
> Am I nuts?
>
> /Mike
>
>
This archive was generated by hypermail 2b25 : Mon Nov 12 2001 - 03:44:25 CST