diff options
Diffstat (limited to '')
| -rw-r--r-- | src/experimental/dir.cpp | 14 | ||||
| -rw-r--r-- | src/experimental/dir.h | 20 | ||||
| -rw-r--r-- | src/experimental/filesystem.cpp | 10 | ||||
| -rw-r--r-- | src/experimental/filesystem.h | 24 |
4 files changed, 68 insertions, 0 deletions
diff --git a/src/experimental/dir.cpp b/src/experimental/dir.cpp new file mode 100644 index 0000000..fb7040c --- /dev/null +++ b/src/experimental/dir.cpp | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | #include "bu/dir.h" | ||
| 2 | |||
| 3 | Bu::Dir::Dir() | ||
| 4 | { | ||
| 5 | } | ||
| 6 | |||
| 7 | Bu::Dir::Dir( const Bu::String &sPath ) | ||
| 8 | { | ||
| 9 | } | ||
| 10 | |||
| 11 | Bu::Dir::~Dir() | ||
| 12 | { | ||
| 13 | } | ||
| 14 | |||
diff --git a/src/experimental/dir.h b/src/experimental/dir.h new file mode 100644 index 0000000..8e885d1 --- /dev/null +++ b/src/experimental/dir.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #ifndef BU_DIR_H | ||
| 2 | #define BU_DIR_H | ||
| 3 | |||
| 4 | #include "bu/filesystem.h" | ||
| 5 | #include "bu/string.h" | ||
| 6 | |||
| 7 | namespace Bu | ||
| 8 | { | ||
| 9 | class Dir : public FileSystem | ||
| 10 | { | ||
| 11 | public: | ||
| 12 | Dir(); | ||
| 13 | Dir( const Bu::String &sPath ); | ||
| 14 | virtual ~Dir(); | ||
| 15 | |||
| 16 | private: | ||
| 17 | }; | ||
| 18 | }; | ||
| 19 | |||
| 20 | #endif | ||
diff --git a/src/experimental/filesystem.cpp b/src/experimental/filesystem.cpp new file mode 100644 index 0000000..fcc555f --- /dev/null +++ b/src/experimental/filesystem.cpp | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #include "bu/filesystem.h" | ||
| 2 | |||
| 3 | Bu::FileSystem::FileSystem() | ||
| 4 | { | ||
| 5 | } | ||
| 6 | |||
| 7 | Bu::FileSystem::~FileSystem() | ||
| 8 | { | ||
| 9 | } | ||
| 10 | |||
diff --git a/src/experimental/filesystem.h b/src/experimental/filesystem.h new file mode 100644 index 0000000..0c992a5 --- /dev/null +++ b/src/experimental/filesystem.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | #ifndef BU_FILE_SYSTEM_H | ||
| 2 | #define BU_FILE_SYSTEM_H | ||
| 3 | |||
| 4 | namespace Bu | ||
| 5 | { | ||
| 6 | /** | ||
| 7 | * Represents an abstract baseclass for any file organization structure. | ||
| 8 | * If you're looking for acessing a local filesystem, try Bu::Dir. This | ||
| 9 | * is used to make switching between different types of filesystems | ||
| 10 | * seamless. FileSystems could be anything that organizes and grants | ||
| 11 | * access to file data, local filesystems, FTP servers, zip or myriadfs | ||
| 12 | * files, etc. | ||
| 13 | */ | ||
| 14 | class FileSystem | ||
| 15 | { | ||
| 16 | public: | ||
| 17 | FileSystem(); | ||
| 18 | virtual ~FileSystem(); | ||
| 19 | |||
| 20 | |||
| 21 | }; | ||
| 22 | }; | ||
| 23 | |||
| 24 | #endif | ||
