1 // Node.h 2 3 #ifndef NET_FS_NODE_H 4 #define NET_FS_NODE_H 5 6 #include <fsproto.h> 7 8 #include "ObjectTracker.h" 9 10 class Volume; 11 12 class Node ONLY_OBJECT_TRACKABLE_BASE_CLASS { 13 public: 14 Node(Volume* volume, vnode_id id); 15 virtual ~Node(); 16 17 Volume* GetVolume() const { return fVolume; } 18 vnode_id GetID() const { return fID; } 19 20 void SetKnownToVFS(bool known); 21 bool IsKnownToVFS() const; 22 23 private: 24 Volume* fVolume; 25 vnode_id fID; 26 bool fKnownToVFS; 27 }; 28 29 #endif // NET_FS_NODE_H 30