xref: /haiku/src/add-ons/kernel/file_systems/netfs/server/Path.h (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
1 // Path.h
2 
3 #ifndef NET_FS_PATH_H
4 #define NET_FS_PATH_H
5 
6 #include <SupportDefs.h>
7 
8 class Path {
9 public:
10 								Path();
11 								~Path();
12 
13 			status_t			SetTo(const char* path,
14 									const char* leaf = NULL);
15 			status_t			Append(const char* leaf);
16 
17 			const char*			GetPath() const;
18 			int32				GetLength() const;
19 
20 private:
21 			status_t			_Resize(int32 minLen);
22 
23 private:
24 			char*				fBuffer;
25 			int32				fBufferSize;
26 			int32				fLength;
27 };
28 
29 #endif // NET_FS_PATH_H
30