Project

General

Profile

Statistics
| Branch: | Revision:

root / src / sim / parsim / parsimutil.h @ 81ad8b66

History | View | Annotate | Download (1.05 KB)

1
//=========================================================================
2
//  PARSIMUTIL.H - part of
3
//
4
//                  OMNeT++/OMNEST
5
//           Discrete System Simulation in C++
6
//
7
//  Author: Andras Varga, 2003
8
//          Dept. of Electrical and Computer Systems Engineering,
9
//          Monash University, Melbourne, Australia
10
//
11
//=========================================================================
12

    
13
/*--------------------------------------------------------------*
14
  Copyright (C) 2003-2008 Andras Varga
15
  Copyright (C) 2006-2008 OpenSim Ltd.
16

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

    
21
#ifndef __PARSIMUTIL_H
22
#define __PARSIMUTIL_H
23

    
24

    
25
/**
26
 * Expects a -p<procId>,<numPartitions> command line argument, and parses it
27
 * into the variables passed. Throws exception on error.
28
 */
29
void getProcIdFromCommandLineArgs(int& myProcId, int& numPartitions,
30
                                  const char *caller);
31

    
32
#endif
33