Cafu Engine
FileSys_LocalPath.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_FILESYS_FILESYSTEM_LOCALPATH_HPP_INCLUDED
8 #define CAFU_FILESYS_FILESYSTEM_LOCALPATH_HPP_INCLUDED
9 
10 #include "FileSys.hpp"
11 
12 
13 namespace cf
14 {
15  namespace FileSys
16  {
18  {
19  public:
20 
21  /// Constructor.
22  /// @throws FileSystemExceptionT when there is a problem with initializing this file system.
23  FileSystemLocalPathT(const std::string& LocalPath_, const std::string& MountPoint_);
24 
25  /// Destructor. Destroys the file system.
26  // ~FileSystemLocalPathT();
27 
28  // Implement all the (pure) virtual methods of the FileSystemT class.
29  InFileI* OpenRead(const std::string& FileName);
30 
31 
32  private:
33 
34  const std::string LocalPath; ///< The local path to be mounted.
35  const std::string MountPoint; ///< The mount point of the path contents.
36  const std::string::size_type MountPointLen; ///< The length of the MountPoint string.
37  };
38  }
39 }
40 
41 #endif
Definition: File.hpp:55
InFileI * OpenRead(const std::string &FileName)
Destructor. Destroys the file system.
Definition: FileSys_LocalPath.cpp:21
FileSystemLocalPathT(const std::string &LocalPath_, const std::string &MountPoint_)
Constructor.
Definition: FileSys_LocalPath.cpp:13
Definition: FileSys.hpp:42
Definition: FileSys_LocalPath.hpp:17