Debian Codegraph @

src/include/time_table.h

raw
1 // =====================================================================
2 //
3 // time_table.h
4 //
5 // Author(s):
6 // Robert Stiles, KK5VD, Copyright (C) 2013
7 //
8 // This file is part of FLAMP.
9 //
10 // This is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // This software is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program. If not, see <http://www.gnu.org/licenses/>.
22 //
23 // =====================================================================
24
25 #ifndef __TIME_TABLE_H
26 #define __TIME_TABLE_H
27
28 #include <config.h>
29 #include <string>
30 #include <cstring>
31
32 extern int mode_table_count(void);
33 extern char * modem_at_index(int index);
34
35 extern bool modem_available(std::string modem);
36 extern bool modem_available(char *modem, int search_limit);
37
38 extern float seconds_from_c_string(const char *mode, const char *str, int length, float *overhead);
39 extern float minutes_from_c_string(const char *mode, const char *str, int length, float *overhead);
40
41 extern float seconds_from_string(std::string mode, std::string& str, float *overhead);
42 extern float minutes_from_string(std::string mode, std::string& str, float *overhead);
43
44 #endif // __TIME_TABLE_H