summaryrefslogtreecommitdiff
path: root/app/bin/include/paramfile.h
blob: 97f635a516ebb33ba33908259dc58a398e15ddb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef HAVE_PARAMFILE_H
	#define HAVE_PARAMFILE_H
	#include <stdbool.h>
	#include <wlib.h>
	#include "common.h"

	extern DIST_T curBarScale;
	extern dynArr_t paramProc_da;
	extern dynArr_t paramFileInfo_da;

	void ParamCheckSumLine(char * line);
	wBool_t IsParamValid(int fileInx);
	bool IsParamFileDeleted(int fileInx);
	bool IsParamFileFavorite(int fileInx);
	void SetParamFileState(int index);
	int ReadParamFile(const char *fileName);
	int	ReloadDeletedParamFile(int fileindex);
	void SetParamFileDeleted(int fileInx, bool deleted);
	void SetParamFileFavorite(int fileInx, bool favorite);
	char * GetParamFileName(int fileInx);
	char * GetParamFileContents(int fileInx);
	bool ReadParams(long key, const char * dirName, const char * fileName);

	#define CONTENTSCOMMAND "CONTENTS"
	char *GetParameterFileContent(char *file);

	#define TURNOUTCOMMAND "TURNOUT"
	#define STRUCTURECOMMAND "STRUCTURE"
	#define CARCOMMAND 		"CARPART"
	#define CARPROTOCOMMAND "CARPROTO"

	char * GetParameterFileScale(char *file);


#endif // !HAVE_PARAMFILE_H