]> git.lyx.org Git - features.git/blob - src/support/lyxlib.h
f7512a7c72032bd0756d428348a3c52b0ac95bb5
[features.git] / src / support / lyxlib.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *        
7  *           Copyright (C) 1995 Matthias Ettrich
8  *           Copyright (C) 1995-1999 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LYX_LIB_H
13 #define LYX_LIB_H
14
15 #include "LString.h"
16
17 // Where can I put this?  I found the occurence of the same code
18 // three/four times. Don't you think it better to use a macro definition
19 // (an inlined member of some class)?
20
21 // This should have been a namespace
22 struct lyx {
23         ///
24         static char * getcwd(char * buffer, size_t size);
25         ///
26         static int chdir(char const * name);
27         /// generates an checksum
28         static unsigned long sum(char const * file);
29         /// returns a date string
30         static char * date(); 
31         ///
32         static string getUserName();
33         ///
34         static int kill(int pid, int sig);
35         ///
36         static void abort();
37 };
38 #endif