ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Spectre2/Spectre2.hpp
Revision: 418
Committed: 2005-03-02T22:36:24-08:00 (20 years, 4 months ago) by douglas
File size: 911 byte(s)
Log Message:
Um, yeah.

File Contents

# Content
1 // Spectre 2
2 //
3 // Douglas Thrift
4 //
5 // $Id$
6
7 #ifndef _Spectre2_hpp_
8 #define _Spectre2_hpp_
9
10 #include <menes/platform.hpp>
11
12 #ifdef MENES_PRAGMA_ONCE
13 #pragma once
14 #endif
15
16 #include <menes-api/console.hpp>
17 #include <menes-api/files.hpp>
18 #include <menes-api/path.hpp>
19 #include <menes-ext/string.hpp>
20 #include <menes-xml/document.hpp>
21 #include <menes-xml/nodeset.hpp>
22 #include <menes-xml/parse.hpp>
23
24 #include <unistd.h>
25
26 typedef api::Posix::FileStream<api::Posix::HandleWriter, O_WRONLY | O_CREAT | O_TRUNC, 0600> SecretFileWriter;
27
28 #ifndef _Spectre2_prefix_
29 #define _Spectre2_prefix_ "/usr/local"
30 #endif
31
32 #ifndef _Spectre2_root_
33 #define _Spectre2_root_ "/smb"
34 #endif
35
36 class Daemon;
37
38 class Spectre2
39 {
40 private:
41 ext::String pid;
42 public:
43 Spectre2(const api::Path& config);
44 ~Spectre2();
45 static ext::String program, prefix, root;
46 static bool debug;
47 static ext::Vector<Daemon*> daemons;
48 };
49
50 #endif // _Spectre2_hpp_

Properties

Name Value
svn:eol-style native
svn:keywords Id