Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
uvahotspot
GitHub Repository: uvahotspot/HotSpot
Path: blob/master/hotfloorplan.h
612 views
1
#ifndef __HOTFLOORPLAN_H_
2
#define __HOTFLOORPLAN_H_
3
4
#include "util.h"
5
6
/* global configuration parameters for HotFloorplan */
7
typedef struct global_config_t_st
8
{
9
/* floorplan description input file */
10
char flp_desc[STR_SIZE];
11
/* power input file */
12
char power_in[STR_SIZE];
13
/* input material properties file */
14
char materials_file[STR_SIZE];
15
/* floorplan output file */
16
char flp_out[STR_SIZE];
17
/* input configuration parameters from file */
18
char config[STR_SIZE];
19
/* output configuration parameters to file */
20
char dump_config[STR_SIZE];
21
}global_config_t;
22
23
/*
24
* parse a table of name-value string pairs and add the configuration
25
* parameters to 'config'
26
*/
27
void global_config_from_strs(global_config_t *config, str_pair *table, int size);
28
/*
29
* convert config into a table of name-value pairs. returns the no.
30
* of parameters converted
31
*/
32
int global_config_to_strs(global_config_t *config, str_pair *table, int max_entries);
33
34
#endif
35
36