1 // SymLink.h 2 3 #ifndef SYMLINK_H 4 #define SYMLINK_H 5 6 #include "Node.h" 7 #include "String.h" 8 9 class SymLink : public Node { 10 public: 11 SymLink(Volume *volume); 12 virtual ~SymLink(); 13 14 virtual status_t SetSize(off_t newSize); 15 virtual off_t GetSize() const; 16 17 status_t SetLinkedPath(const char *path); 18 const char *GetLinkedPath() const { return fLinkedPath.GetString(); } 19 size_t GetLinkedPathLength() const { return fLinkedPath.GetLength(); } 20 21 // debugging 22 virtual void GetAllocationInfo(AllocationInfo &info); 23 24 private: 25 String fLinkedPath; 26 }; 27 28 #endif // SYMLINK_H 29