F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
DefaultFile.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/Posix/DefaultFile.cpp
3
// \brief sets default Os::File to posix implementation via linker
4
// ======================================================================
5
#include "
Os/File.hpp
"
6
#include "
Os/Posix/File.hpp
"
7
#include "
Os/Delegate.hpp
"
8
9
namespace
Os
{
10
FileInterface
*
FileInterface::getDelegate
(
HandleStorage
& aligned_new_memory,
const
FileInterface
* to_copy) {
11
return
Os::Delegate::makeDelegate<FileInterface, Os::Posix::File::PosixFile>(aligned_new_memory, to_copy);
12
}
13
}
Delegate.hpp
File.hpp
HandleStorage
U8 HandleStorage[FW_HANDLE_MAX_SIZE]
Storage type for OSAL handles.
Definition:
Os.hpp:10
File.hpp
Os::FileInterface
Definition:
File.hpp:17
Os::FileInterface::getDelegate
static FileInterface * getDelegate(HandleStorage &aligned_placement_new_memory, const FileInterface *to_copy=nullptr)
provide a pointer to a file delegate object
Definition:
DefaultFile.cpp:10
Os
Definition:
FileModeEnumAc.cpp:13
Os
Posix
DefaultFile.cpp
Generated by
1.9.1