| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // ====================================================================== | ||
| 2 | // \title Os/Posix/DefaultFile.cpp | ||
| 3 | // \brief sets default Os::File to posix implementation via linker | ||
| 4 | // ====================================================================== | ||
| 5 | #include "Os/Delegate.hpp" | ||
| 6 | #include "Os/Directory.hpp" | ||
| 7 | #include "Os/File.hpp" | ||
| 8 | #include "Os/FileSystem.hpp" | ||
| 9 | #include "Os/Posix/Directory.hpp" | ||
| 10 | #include "Os/Posix/File.hpp" | ||
| 11 | #include "Os/Posix/FileSystem.hpp" | ||
| 12 | |||
| 13 | namespace Os { | ||
| 14 | 946 | FileInterface* FileInterface::getDelegate(FileHandleStorage& aligned_new_memory, const FileInterface* to_copy) { | |
| 15 | 946 | return Os::Delegate::makeDelegate<FileInterface, Os::Posix::File::PosixFile>(aligned_new_memory, to_copy); | |
| 16 | } | ||
| 17 | 1 | FileSystemInterface* FileSystemInterface::getDelegate(FileSystemHandleStorage& aligned_new_memory) { | |
| 18 | 1 | return Os::Delegate::makeDelegate<FileSystemInterface, Os::Posix::FileSystem::PosixFileSystem>(aligned_new_memory); | |
| 19 | } | ||
| 20 | 2 | DirectoryInterface* DirectoryInterface::getDelegate(DirectoryHandleStorage& aligned_new_memory) { | |
| 21 | 2 | return Os::Delegate::makeDelegate<DirectoryInterface, Os::Posix::Directory::PosixDirectory>(aligned_new_memory); | |
| 22 | } | ||
| 23 | } // namespace Os | ||
| 24 |