00001 //========================================================================== 00002 // COMPAT.H - part of 00003 // OMNeT++/OMNEST 00004 // Discrete System Simulation in C++ 00005 // 00006 // 00007 // Backwards compatibility 00008 // 00009 //========================================================================== 00010 00011 /*--------------------------------------------------------------* 00012 Copyright (C) 1992-2005 Andras Varga 00013 00014 This file is distributed WITHOUT ANY WARRANTY. See the file 00015 `license' for details on this and other legal matters. 00016 *--------------------------------------------------------------*/ 00017 00018 #ifndef __COMPAT_H 00019 #define __COMPAT_H 00020 00021 00022 // 00023 // This header needs to be included *last* in omnetpp.h. 00024 // 00025 00026 // cObject: 00027 #define isA() className() 00028 // cQueue: 00029 #define insertHead(a) insert(a) 00030 #define peekTail() tail() 00031 #define peekHead() head() 00032 #define getTail() pop() 00033 // cSimulation 00034 #define lastModuleIndex() lastModuleId() 00035 // cModule 00036 #define displayStringAsParent() backgroundDisplayString() 00037 #define setDisplayStringAsParent setBackgroundDisplayString 00038 00039 // following ones became inner classes: 00040 typedef cKSplit::Iterator cKSplitIterator; 00041 typedef cKSplit::Grid sGrid; 00042 typedef cQueue::Iterator cQueueIterator; 00043 typedef cLinkedList::Iterator cLinkedListIterator; 00044 typedef cPar::ExprElem sXElem; 00045 typedef cMessageHeap::Iterator cMessageHeapIterator; 00046 typedef cTopology::Link sTopoLink; 00047 typedef cTopology::LinkIn sTopoLinkIn; 00048 typedef cTopology::LinkOut sTopoLinkOut; 00049 typedef cTopology::Node sTopoNode; 00050 00051 // renamed classes: 00052 typedef cDisplayString cDisplayStringParser; 00053 typedef cBasicChannel cSimpleChannel; 00054 00055 #endif 00056