[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: multiple entries inside KSimpleConfig
From:       Frerich Raabe <raabe () kde ! org>
Date:       2002-07-30 18:51:03
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 30 July 2002 20:21, Yannick Koehler wrote:
> What's the best way to save many similar entries?  I have the following
>
> 	filter {
> 		char *name;
> 		char *rule;
> 	}
>
> The name is fixed length, the rule is unknown.

I'd declare operator<< and operator>> for that class so that you can easily 
store and retrieve objects from a QDataStream. Reading that file becomes a 
matter of

while ( !stream.eof() )
	filter << stream;

- - Frerich
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE9RuAXKrbzRexv2VkRAqjuAJ9RMxNfjQXuy10Ng5qgTubmyc/gUwCfbqtf
CkCZ+/8FksHiSoyYfIw9OW0=
=jJS/
-----END PGP SIGNATURE-----


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic