Statistics
| Branch: | Revision:

root / src / envir / fsutils.h @ 68da4f12

History | View | Annotate | Download (1.12 KB)

1
//==========================================================================
2
//  FSUTILS.H - part of
3
//                     OMNeT++/OMNEST
4
//            Discrete System Simulation in C++
5
//
6
//  Author: Andras Varga
7
//
8
//==========================================================================
9

    
10
/*--------------------------------------------------------------*
11
  Copyright (C) 1992-2008 Andras Varga
12
  Copyright (C) 2006-2008 OpenSim Ltd.
13

14
  This file is distributed WITHOUT ANY WARRANTY. See the file
15
  `license' for details on this and other legal matters.
16
*--------------------------------------------------------------*/
17

    
18
#ifndef __FSUTILS_H
19
#define __FSUTILS_H
20

    
21
#include "envirdefs.h"
22
#include "simutil.h"
23

    
24
NAMESPACE_BEGIN
25

    
26
/**
27
 * Utility function: dynamically loads a DLL (Windows) or shared object
28
 * (.so, on Unix systems) and registers the module types, channel types,
29
 * networks etc. in it. The file name should be given without extension;
30
 * ".dll" or ".so" will be appended, depending on the platform.
31
 *
32
 * On failure, cRuntimeError will be thrown.
33
 */
34
ENVIR_API void loadExtensionLibrary(const char *lib);
35

    
36
NAMESPACE_END
37

    
38

    
39
#endif
40