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

List:       koffice-devel
Subject:    Re: Portable Code (am I dreaming? :))
From:       Waldo Bastian <bastian () kde ! org>
Date:       2002-01-16 20:57:11
[Download RAW message or body]

On Wednesday 16 January 2002 12:22 pm, Michael Marcucio wrote:
> can you read in an entire struct from a QDataStream? such as:
> struct
> {
>     Q_UINT32 a;
>     Q_INT8   b;
>     ...
> }mystruct;
>
> stream >> mystruct;
>
> i ask because structs can sometimes become large and it would be easier to
> do "stream >> mystruct" than "stream >> mystream.a >> mystream.b >> ..."

Yes, but you would need to provider a 'operator>>' method for that particular 
struct then.

Cheers,
Waldo
-- 
bastian@kde.org  |   SuSE Labs KDE Developer  |  bastian@suse.com

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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