Project

General

Profile

Statistics
| Branch: | Revision:

root / include / globals.h @ 2f5cc443

History | View | Annotate | Download (1.68 KB)

1 01873262 Georg Kunz
//==========================================================================
2
//  GLOBALS.H - part of
3
//                     OMNeT++/OMNEST
4
//            Discrete System Simulation in C++
5
//
6
//==========================================================================
7
8
/*--------------------------------------------------------------*
9
  Copyright (C) 1992-2008 Andras Varga
10
  Copyright (C) 2006-2008 OpenSim Ltd.
11

12
  This file is distributed WITHOUT ANY WARRANTY. See the file
13
  `license' for details on this and other legal matters.
14
*--------------------------------------------------------------*/
15
16
#ifndef __GLOBALS_H
17
#define __GLOBALS_H
18
19
#include "onstartup.h"
20
#include "cregistrationlist.h"
21
#include "cobjectfactory.h"
22
23
NAMESPACE_BEGIN
24
25
//
26
// Global objects
27
//
28
29
//< Internal: list in which objects are accumulated if there is no simple module in context.
30
//< @see cOwnedObject::setDefaultOwner() and cSimulation::setContextModule())
31
SIM_API extern cDefaultList defaultList;
32
33
SIM_API extern cGlobalRegistrationList componentTypes;  ///< List of all component types (cComponentType)
34
SIM_API extern cGlobalRegistrationList nedFunctions;    ///< List if all NED functions (cMathFunction and cNEDFunction)
35
SIM_API extern cGlobalRegistrationList classes;         ///< List of all classes that can be instantiated using createOne(); see cObjectFactory and Register_Class() macro
36
SIM_API extern cGlobalRegistrationList enums;           ///< List of all enum objects (cEnum)
37
SIM_API extern cGlobalRegistrationList classDescriptors;///< List of all class descriptors (cClassDescriptor)
38
SIM_API extern cGlobalRegistrationList configOptions;   ///< List of supported configuration options (cConfigOption)
39
40
NAMESPACE_END
41
42
43
#endif