F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Directory.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title Os/Stub/Directory.cpp
3
// \brief stub implementation for Os::Directory
4
// ======================================================================
5
#include "
Os/Stub/Directory.hpp
"
6
7
namespace
Os
{
8
namespace
Stub {
9
namespace
Directory
{
10
11
StubDirectory::Status
StubDirectory::open
(
const
char
* path,
OpenMode
mode) {
12
return
Status::NOT_SUPPORTED;
13
}
14
15
StubDirectory::Status
StubDirectory::rewind
() {
16
return
Status::NOT_SUPPORTED;
17
}
18
19
StubDirectory::Status
StubDirectory::read
(
char
* fileNameBuffer,
FwSizeType
bufSize) {
20
return
Status::NOT_SUPPORTED;
21
}
22
23
void
StubDirectory::close
() {
24
// no-op
25
}
26
27
DirectoryHandle
*
StubDirectory::getHandle
() {
28
return
&this->m_handle;
29
}
30
31
}
// namespace Directory
32
}
// namespace Stub
33
}
// namespace Os
FwSizeType
PlatformSizeType FwSizeType
Definition:
FpConfig.h:35
Directory.hpp
Os::Directory
Directory class.
Definition:
Directory.hpp:117
Os::DirectoryInterface::OpenMode
OpenMode
Definition:
Directory.hpp:33
Os::DirectoryInterface::Status
Status
Definition:
Directory.hpp:19
Os::Stub::Directory::StubDirectory::open
Status open(const char *path, OpenMode mode) override
Open or create a directory.
Definition:
Directory.cpp:11
Os::Stub::Directory::StubDirectory::close
void close() override
Close directory.
Definition:
Directory.cpp:23
Os::Stub::Directory::StubDirectory::read
Status read(char *fileNameBuffer, FwSizeType buffSize) override
Get next filename from directory stream.
Definition:
Directory.cpp:19
Os::Stub::Directory::StubDirectory::rewind
Status rewind() override
Rewind directory stream.
Definition:
Directory.cpp:15
Os::Stub::Directory::StubDirectory::getHandle
DirectoryHandle * getHandle() override
return the underlying Directory handle (implementation specific)
Definition:
Directory.cpp:27
Os
Definition:
DirectoryOpenModeEnumAc.cpp:13
Os::DirectoryHandle
Definition:
Directory.hpp:15
Os
Stub
Directory.cpp
Generated by
1.9.1