Author: dmacvicar Date: Mon Jul 23 10:56:10 2007 New Revision: 6144 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6144&view=rev Log: - add default constructor for inidict, allowing to fill it later Modified: trunk/libzypp/zypp/parser/IniDict.cc trunk/libzypp/zypp/parser/IniDict.h Modified: trunk/libzypp/zypp/parser/IniDict.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/parser/IniDict.cc?rev=6144&r1=6143&r2=6144&view=diff ============================================================================== --- trunk/libzypp/zypp/parser/IniDict.cc (original) +++ trunk/libzypp/zypp/parser/IniDict.cc Mon Jul 23 10:56:10 2007 @@ -33,7 +33,18 @@ // METHOD NAME : IniDict::IniDict // METHOD TYPE : Ctor // - IniDict::IniDict( const InputStream &is, const ProgressData::ReceiverFnc & progress ) + IniDict::IniDict( const InputStream &is, + const ProgressData::ReceiverFnc & progress ) + { + read(is, progress ); + } + + IniDict::IniDict() + { + } + + void IniDict::read( const InputStream &is, + const ProgressData::ReceiverFnc & progress ) { parse(is, progress ); } Modified: trunk/libzypp/zypp/parser/IniDict.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/parser/IniDict.h?rev=6144&r1=6143&r2=6144&view=diff ============================================================================== --- trunk/libzypp/zypp/parser/IniDict.h (original) +++ trunk/libzypp/zypp/parser/IniDict.h Mon Jul 23 10:56:10 2007 @@ -87,11 +87,23 @@ */ IniDict( const InputStream &is, const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc() ); + + /** + * Creates a mepty dictionary + */ + IniDict(); /** Dtor */ ~IniDict(); /** + * Fill a dictionary from a InputStream + * containing a ini structured file + */ + void read( const InputStream &is, + const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc() ); + + /** * \short add an entry * \param section * \param key -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org