On Tue, Jan 15, Duncan Mac-Vicar Prett wrote:
- sat classes and pool string space
This is not an issue, but a desgn problem which makes thing unconfortable but there is no "best" solution either. Right now, sat wrapper classes, are only composed of the Id plus some helper methods. For example, architecture as compatibleWith() method, etc. Those classes Id are based on a global "pool". However while parsing (i am talking from the POV of using the current code), you don't want to mess with the global pool. But you want to use those nice classes instead of dealing with dumb objects like as a string as an architecture (yes, to check compatibility right now I have to promote the string to an Arch just to use the helpful methods).
I told you that all the classes will contain static methods to access those funcions without need to promote a char* to Arch: Arch::comatibleWith( "foo", "baa" ) Edition::compare( "1-3", "2-4" ) Edition::match( "2", "2-4" ) ... Be patient until they are committed. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com 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@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org