--- Hubert Figuiere <[EMAIL PROTECTED]> wrote: > According to Mike Nordell <[EMAIL PROTECTED]>: > > > 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.
Just a reminder that the importers and exporters do not only deal with files. They also deal with the clipboard. In the future there may be a case for importing a file over HTTP from a URL like MSWord can do as well. So we better keep this sort of thing in mind if we can. Andrew. > > 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 > > > > > ===== http://linguaphile.sourceforge.net __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
