Mailinglist Archive: zypp-devel (115 mails)

< Previous Next >
Re: [zypp-devel] ZYpp and name conventions
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Thu, 5 Jul 2007 13:10:36 +0200
  • Message-id: <20070705111036.GA10038@xxxxxxx>
On Thu, Jul 05, Duncan Mac-Vicar Prett wrote:

> 
> zypp::CheckSum
> OnMediaLocaton::checksum()
> 
> ResObject::mediaNr()
> OnMediaLocaton::medianr()
> 
> ResObject::licenseToConfirm()
> 
> data::Packagebase::repositoryLocation::filepath
> OnMediaLocation::filename
> 
> data::Packagebase::repositoryLocation::fileSize
> OnMediaLocation::downloadsize

You know that we capitalize each word in an name and use no '_'.
Typenames start uppercased, methods and variables low.

These classes have been impementation details hidden in the source 
namespace. Of course they need some polising if we drag them into
the public API.


I'll setup a doxygen page where we can collect our rules.



> Also every developer needs a reference card to know what fileSize, 
> downloadsize, archvesize etc is.

Yes we have to document the attribute values we store in the database, and 
how they are used to construct the attributes returned by the resolvables.

E.g: DB attributes attrPackageChecksum and attrPackageChecksumType are used 
to construct the zypp::CheckSum available in the Packages OnMediaLocation.

-- 

cu,
    Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862  27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres             YaST Development            ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF:  Markus Rex,  HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

-- 
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >