Rudiments
device.h
1 // Copyright (c) 2004 David Muse
2 // See the COPYING file for more information.
3 
4 #ifndef RUDIMENTS_DEVICE_H
5 #define RUDIMENTS_DEVICE_H
6 
7 #include <rudiments/private/deviceincludes.h>
8 
9 #ifdef RUDIMENTS_NAMESPACE
10 namespace rudiments {
11 #endif
12 
13 class deviceprivate;
14 
22 class RUDIMENTS_DLLSPEC device : public file {
23  public:
24 
26  device();
27 
30  device(const device &d);
31 
34  device &operator=(const device &d);
35 
37  virtual ~device();
38 
45  static bool createDeviceNode(const char *filename,
46  bool blockdevice,
47  uint16_t major,
48  uint16_t minor,
49  mode_t perms);
50 
51  #include <rudiments/private/device.h>
52 };
53 
54 #ifdef RUDIMENTS_NAMESPACE
55 }
56 #endif
57 
58 #endif