source: EEW/trunk/mcast2eew/McastToEEWProperties.h @ 3716

Revision 3716, 1.2 KB checked in by solanki, 4 years ago (diff)

Merged MiniSEED and uncompressed packet processing.
Multiprocess Model.
UDP Communication.

Line 
1/*
2  Author: Kalpesh Solanki
3 */
4
5#ifndef __McastToEEWProperties_h
6#define __McastToEEWProperties_h
7#include <stdio.h>
8#include <string>
9#include <map>
10#include <fstream>
11#include "RetCodes.h"
12#include "Exceptions.h"
13
14using namespace std;
15
16typedef map<string,string> KeyValueMap;
17
18class McastToEEWProperties{
19 private:
20
21             string _logfile;
22             string _programname;
23             string _gcdafile;
24             string _dbservice;
25             string _dbuser;
26             string _dbpassword;
27             string _multicastaddress;
28             string _qmamulticastaddress;
29             string _ifid;
30         
31
32        KeyValueMap kvm;
33
34        int toInt(string) throw(Error);
35        float toFloat(string) throw(Error);
36        double toDouble(string) throw(Error);
37        bool toBool(string) throw(Error);
38
39 public:
40        McastToEEWProperties();
41        McastToEEWProperties(string) throw(Error);
42        McastToEEWProperties(const McastToEEWProperties&);
43        McastToEEWProperties& operator=(const McastToEEWProperties&);
44
45                string getLogFile() const;
46                string getProgramName() const;
47                string getGCDAFile() const;
48                string getDBService() const;
49                string getDBUser() const;
50                string getDBPassword() const;
51                string getMulticastAddress() const;
52                string getQMAMulticastAddress() const;
53                string getIFID() const;
54       
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.