Why not?

class T {
        int fifo;
public:
        T& operator<<(T& t, int data) { rtf_put(t.fifo, &data,
sizeof(data)); return t; }
};

or something like this

Michael.

Ivan Martinez ([EMAIL PROTECTED]) wrote:
> Hello all. Is it possible to define << and >> operators in a class and then
> use them to write and read in rtfifos from the realtime code?.
> 
> Ivan Martinez
> Software Engineering MSc student
> http://www.iau.dtu.dk/~im/
> "Got fabes?"
> 
> ----- End of forwarded message from [EMAIL PROTECTED] -----
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to