archive methods?

Johnathan Burchill <[email protected]> Sat, 17 Jul 2004 03:07:13 -0600
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
Hi Denis,

Now that libdar uses the "archive" class, what is the possibility of having 
the various libdar operations implemented as methods of the archive class?

Instead of

libdar::archive *theArchive;

libdar::open( theArchive, ...)
libdar::test( theArchive, ...)
etc.

what about having

libdar::archive *theArchive( path, basename, etc.)

theArchive->open();
theArchive->test();

Have you considered this? I'm not sure what this would accomplish, besides 
quite a bit of possibly unnecessary code rewriting. It just ocurred to me 
that an archive is the main object for libdar, and the usual way in c++ is 
to implement functions as methods.

Please enlighten me if I am off base here. I'm not sure that I've thought 
this through very much. Sorry in advance if this has been documented 
elsewhere.

Cheers,
JB

-- 
Johnathan K. Burchill, Ph.D.
[email protected]
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQBA+OxGrXMSOtiWrO4RAs50AKCeRHzJM/KK6J5HodKe8djc9/CuKACgluev
HnmjaucbRftkBf40ckTNyAs=
=Zi5q
-----END PGP SIGNATURE-----