SST/macro
c_params.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-2011 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 SSTMAC_COMMON_C_PARAMS_H_INCLUDED
13 #define SSTMAC_COMMON_C_PARAMS_H_INCLUDED
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #else
19 #include <stdbool.h>
20 #endif
21 //bool get_bool_param(const char* str);
22 
23 // bool get_optional_bool_param(const char* str, bool val);
24 
25 int
26 get_int_param(char* str);
27 
28 int
29 get_optional_int_param(char* str, int val);
30 
31 long
32 get_long_param(char* str);
33 
34 long
35 get_optional_long_param(char* str, long val);
36 
37 double
38 get_double_param(char* str);
39 
40 double
41 get_optional_double_param(char* str, double val);
42 
43 const char*
44 get_param(char* str);
45 
46 bool
47 get_bool_param(char* str);
48 
49 bool
50 get_optional_bool_param(char* str, bool val);
51 
52 const char*
53 get_optional_param(char* str, char* val);
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif
59 
const char * get_param(char *str)
double get_double_param(char *str)
bool get_bool_param(char *str)
int get_optional_int_param(char *str, int val)
int get_int_param(char *str)
long get_long_param(char *str)
long get_optional_long_param(char *str, long val)
const char * get_optional_param(char *str, char *val)
bool get_optional_bool_param(char *str, bool val)
double get_optional_double_param(char *str, double val)