VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSocketCollection Class Reference

a collection for sockets. More...

#include <vtkSocketCollection.h>

Inheritance diagram for vtkSocketCollection:
Inheritance graph
[legend]
Collaboration diagram for vtkSocketCollection:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkCollection Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSocketCollectionNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void AddItem (vtkSocket *soc)
int SelectSockets (unsigned long msec=0)
vtkSocketGetLastSelectedSocket ()

Static Public Member Functions

static vtkSocketCollectionNew ()
static int IsTypeOf (const char *type)
static vtkSocketCollectionSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const

Protected Attributes

vtkSocketSelectedSocket
void ReplaceItem (int i, vtkObject *)
void RemoveItem (int i)
void RemoveItem (vtkObject *)
void RemoveAllItems ()
 vtkSocketCollection ()
 ~vtkSocketCollection ()

Detailed Description

a collection for sockets.

Apart from being vtkCollection subclass for sockets, this class provides means to wait for activity on all the sockets in the collection simultaneously.

Definition at line 30 of file vtkSocketCollection.h.


Member Typedef Documentation

Reimplemented from vtkCollection.

Definition at line 34 of file vtkSocketCollection.h.


Constructor & Destructor Documentation

Overridden to unset SelectedSocket.

Overridden to unset SelectedSocket.


Member Function Documentation

Construct with empty list.

Reimplemented from vtkCollection.

static int vtkSocketCollection::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCollection.

virtual int vtkSocketCollection::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCollection.

Reimplemented from vtkCollection.

virtual vtkObjectBase* vtkSocketCollection::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkCollection.

Reimplemented from vtkCollection.

void vtkSocketCollection::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkCollection.

int vtkSocketCollection::SelectSockets ( unsigned long  msec = 0)

Select all Connected sockets in the collection. If msec is specified, it timesout after msec milliseconds on inactivity. Returns 0 on timeout, -1 on error; 1 is a socket was selected. The selected socket can be retrieved by GetLastSelectedSocket().

Returns the socket selected during the last SelectSockets(), if any. NULL otherwise.

Definition at line 49 of file vtkSocketCollection.h.

Overridden to unset SelectedSocket.

Reimplemented from vtkCollection.

Overridden to unset SelectedSocket.

Reimplemented from vtkCollection.

Overridden to unset SelectedSocket.

Reimplemented from vtkCollection.

Overridden to unset SelectedSocket.

Reimplemented from vtkCollection.


Member Data Documentation

Definition at line 64 of file vtkSocketCollection.h.


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