SST/macro
driver_util.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009-2010 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SPROCKIT_DRIVER_UTIL_H
13 #define SPROCKIT_DRIVER_UTIL_H
14 
15 #include <vector>
16 
17 namespace sprockit {
18 
19 double
20 get_positive_float(const char *value, bool &errorflag);
21 
22 int
23 get_int(const char *value, bool &errorflag);
24 
25 int
26 get_positive_int(const char *value, bool &errorflag);
27 
28 void
29 get_intvec(const char *value, bool &errorflag, std::vector<int>& retval);
30 
31 std::vector<int>
32 get_intvec(const char *value, bool &errorflag);
33 
34 }
35 #endif
36 
void get_intvec(const char *value, bool &errorflag, std::vector< int > &retval)
int get_positive_int(const char *value, bool &errorflag)
int get_int(const char *value, bool &errorflag)
double get_positive_float(const char *value, bool &errorflag)