Main Page | Class Hierarchy | Class List | File List | Class Members

MipManager Class Reference

Manages a Set of MipBus objects with attached MipDevices. More...

#include <MipManager.h>

List of all members.

Public Member Functions

 MipManager (IOInterfaceList *iolist=0, EventInterfaceList *evlist=0)
 Constructor.
 ~MipManager ()
 Destructor.
void SetLogInterface (MipLogInterface *miplog)
 Sets the mip log interface.
MipLogInterfaceGetLogInterface ()
 Returns the mip log interface.
IOInterfaceListGetIOInterfaceList ()
 Returns the IO interface list.
EventInterfaceListGetEventInterfaceList ()
 Returns the event interface list.
MipBusFindMipBus (const std::string &device)
 Returns a MipBus object.
int GetMipBusMax ()
 Returns the maximum number of MipBus objects.
MipBusGetMipBus (int i)
 Returns a MipBus object.
void Report (const std::string &name, std::ostream &out, int ccindent=0) const
 Writes a report of this object to the given stream. This is mainly useful for debugging.


Detailed Description

Manages a Set of MipBus objects with attached MipDevices.

This is the first object to create when working with this library. All MipDevice objects are attached to it.

The MipManager requires an IOInterfaceList and an EventInterfaceList. If these arguments are not provided, the MipManager creates these lists for you and you can access them using GetIOInterfaceList and GetEventInterfaceList. Note that if you don't use the MainLoop implementation of this library as your program's main loop, you need to listen to all filehandles of the IOInterfaceList and call the OnInputAvailable() method on the corresponding IOInterface object when filehandles become active.

The MipManager transparently maintains a list of MipBus objects. If you add a MipDevice on a serial port, a MipBus object for that serial port is created (unless such an object exists already) and the MipDevice object is attached to this MipBus. Hence, the structure looks like this:

You can use the Report() method to dump the data structure of the MipManager.


The documentation for this class was generated from the following file:
Generated on Wed Jun 1 09:19:08 2005 for libmip by doxygen 1.3.8