-
Notifications
You must be signed in to change notification settings - Fork 0
/
PMSspex.h
50 lines (36 loc) · 1.14 KB
/
PMSspex.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
-------------------------------------------------------------------------
OBJECT NAME: PMSspex.h
DESCRIPTION: Header file for PMSspec's files.
COPYRIGHT: University Corporation for Atmospheric Research, 1998-2020
-------------------------------------------------------------------------
*/
#ifndef _libraf_pmsspex_h_
#define _libraf_pmsspex_h_
#include <string>
/* -------------------------------------------------------------------- */
/**
* Parse a PMSspecs text file. A PMSspecs file is a key, value paired
* configuration file. A file contains key, value pairs for many probes,
* They are therefore blocked out by START/END keywords where the start is
* also followed by the probes serial number.
*/
class PMSspex
{
public:
PMSspex(const std::string fName);
~PMSspex();
/**
* Given a probe serial number and a key name, return the value.
*/
std::string GetParameter(const std::string serialNumber, const char parameter[]);
/**
* Return list of serial numbers that were found in the file.
*/
int GetSerialNumList(char *list[]);
private:
char **PMSfile;
static const char COMMENT;
};
#endif
/* END PMSSPEX.H */