#include <mapping.h>
Inheritance diagram for Mapping:


| Public Member Functions | |
| Mapping (MappingFactory *factory, const char *filename, side_t side) | |
| virtual | ~Mapping () | 
| side_t | getSide () | 
| virtual bool | isLoaded () | 
| virtual TraceContext * | getTraceContext () | 
| virtual bool | isOpen () | 
| virtual bool | open () | 
| virtual void | close () | 
| Protected Member Functions | |
| virtual bool | openChannel (ChannelMapping *channel)=0 | 
| virtual void | closeChannel (ChannelMapping *channel)=0 | 
| virtual void | load () | 
| bool | openChannels (channelList_t &list, channelList_t::iterator &it) | 
| 
 | ||||||||||||||||
| Construct a new Mapping and attempt to load it. 
 
 | 
| 
 | 
| Destruct the mapping. Closes the mapping if it is open. | 
| 
 | 
| 
 | 
| 
 | 
| Check if the mapping is properly loaded. 
 
 | 
| 
 | 
| Return the root trace context. This is a pointer to the top level of the mapping data structure. 
 
 | 
| 
 | 
| Check if the mapping is open for communication. 
 
 | 
| 
 | 
| Open the mapping. Will fail if the mapping is not both loaded. 
 
 Reimplemented in FileMapping, MsgQMUXMapping, and SharedMemMapping. | 
| 
 | 
| Close the mapping. Calls closeChannel for each of the open channels. Reimplemented in MsgQMUXMapping, and SharedMemMapping. | 
| 
 | 
| Abstract function for opening a ChannelMapping in this Mapping 
 
 
 Implemented in FileMapping. | 
| 
 | 
| Abstract function for closing a ChannelMapping in this Mapping. 
 
 Implemented in FileMapping. | 
| 
 | 
| Automaticly called by the constructor. Attempts to load and construct the YML mapping. isLoaded() will return true if it succeded, false otherwise. | 
| 
 | ||||||||||||
| A recursive function for opening the channels that assures that if one channels fails to open all others will be closed. 
 
 
 | 
 1.4.6
 1.4.6