xref: /haiku/src/add-ons/kernel/file_systems/bindfs/Node.h (revision 5e96d7d537fbec23bad4ae9b4c8e7b02e769f0c6)
1 /*
2  * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef NODE_H
6 #define NODE_H
7 
8 
9 #include <fs_interface.h>
10 
11 
12 class Node {
13 public:
14 								Node(ino_t sourceID, mode_t mode);
15 								~Node();
16 
17 			ino_t				ID() const			{ return fSourceID; }
18 									// currently, we reuse the source-ID
19 
20 			ino_t				SourceID() const	{ return fSourceID; }
21 			mode_t				Mode() const		{ return fMode; }
22 
23 protected:
24 			ino_t				fSourceID;
25 			mode_t				fMode;
26 };
27 
28 
29 #endif	// NODE_H
30