guit  0.1
 All Classes Functions Variables Typedefs Enumerations Friends
Public Member Functions | List of all members
guit::GSocketChannel Class Reference

A Channel of communication that can be bound with a GVarProp both ways. More...

Inheritance diagram for guit::GSocketChannel:
guit::GObject

Public Member Functions

GSocketChanneloperator<<= (GVarProp &sender)
 Output binding: when sender value will change, this value will be sent on this channel.
 
GSocketChanneloperator^= (GVarProp &synced_prop)
 Binds both ways.
 
GSocketChanneloperator<< (GFunction const &fun)
 Adds a callback function that is fired when the channel receives data.
 
GSocketChanneloperator= (GString const &data)
 Sends data on this channel.
 
GSocketsocket ()
 Returns the socket that is bound to this channel.
 
const GPropListprops () const
 Returns callbacks.
 
virtual void error (GString const &funname, GString const &message) const
 Prints an error message. More...
 
void operator delete (void *)
 delete does nothing, see GObject class.
 
void forgetSmartPointers ()
 Forgets all smart pointers pointing this object. More...
 
unsigned int useCount () const
 Returns the numbers of smart pointers referencing the object.
 
virtual void removeNotifiers (void *obj)
 [Implementation] Notifies this object that it must no longer refer obj.
 
template<class Subclass >
Subclass * to ()
 Class conversions.
 
void ignoreSmartPointers ()
 Checks/sets whether this object can be auto-deleted by smart pointers. More...
 
GSocketChanneloperator>>= (GVarProp &receiver)
 Input binding: when data will arrive on this channel, receiver value will be updated. More...
 

Detailed Description

A Channel of communication that can be bound with a GVarProp both ways.

channel["*"] is a special channel that sends/receives all data unformatted.

Member Function Documentation

GSocketChannel & guit::GSocketChannel::operator>>= ( GVarProp receiver)

Input binding: when data will arrive on this channel, receiver value will be updated.

Note
when data is sent
void guit::GObject::error ( GString const &  funname,
GString const &  message 
) const
virtualinherited

Prints an error message.

See Also
GApp::onError() to change error management.
void guit::GObject::ignoreSmartPointers ( )
inlineinherited

Checks/sets whether this object can be auto-deleted by smart pointers.

ignoreSmartPointers() has a permanent effect, contrary to forgetSmartPointers(). Objects not created by calling new are never auto-deleted by smart pointers.

void guit::GObject::forgetSmartPointers ( )
inlineinherited

Forgets all smart pointers pointing this object.

The smart pointers that are currently pointing to the object won't auto-delete it. forgetSmartPointers() has a temporary effect, contrary to ignoreSmartPointers().


The documentation for this class was generated from the following files: