source: BAORadio/libindi/libindi/Indi_Stellarium/src/LogFile.hpp @ 623

Last change on this file since 623 was 623, checked in by frichard, 13 years ago
File size: 1.3 KB
Line 
1/*
2The stellarium telescope library helps building
3telescope server programs, that can communicate with stellarium
4by means of the stellarium TCP telescope protocol.
5It also contains smaple server classes (dummy, Meade LX200).
6
7Author and Copyright of this file and of the stellarium telescope library:
8Johannes Gajdosik, 2006
9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23*/
24
25#ifndef _LOG_FILE_H_
26#define _LOG_FILE_H_
27
28#include <fstream>
29
30using namespace std;
31
32long long int GetNow(void);
33
34class Now {
35public:
36  Now(void) : time(GetNow()) {}
37  const long long int time;
38};
39
40ostream &operator<<(ostream &o,const Now &now);
41
42extern ostream *log_file;
43
44void SetLogFile(const char *name);
45
46#endif
Note: See TracBrowser for help on using the repository browser.