F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
A sequence with unspecified binary format. More...
#include <Svc/CmdSequencer/CmdSequencerImpl.hpp>
Classes | |
class | Events |
Sequence event reporting. More... | |
class | Header |
A sequence header. More... | |
class | Record |
A sequence record. More... | |
Public Member Functions | |
Sequence (CmdSequencerComponentImpl &component) | |
Construct a Sequence object. More... | |
virtual | ~Sequence () |
Destroy a Sequence object. More... | |
void | allocateBuffer (NATIVE_INT_TYPE identifier, Fw::MemAllocator &allocator, NATIVE_UINT_TYPE bytes) |
Give the sequence representation a memory buffer. More... | |
void | deallocateBuffer (Fw::MemAllocator &allocator) |
Deallocate the buffer. More... | |
void | setFileName (const Fw::StringBase &fileName) |
Set the file name. Also sets the log file name. More... | |
Fw::CmdStringArg & | getFileName () |
Fw::LogStringArg & | getLogFileName () |
const Header & | getHeader () const |
Get the sequence header. More... | |
virtual bool | loadFile (const Fw::StringBase &fileName)=0 |
virtual bool | hasMoreRecords () const =0 |
virtual void | nextRecord (Record &record)=0 |
virtual void | reset ()=0 |
virtual void | clear ()=0 |
Protected Attributes | |
CmdSequencerComponentImpl & | m_component |
The enclosing component. More... | |
Events | m_events |
Event reporting. More... | |
Fw::CmdStringArg | m_fileName |
The sequence file name. More... | |
Fw::LogStringArg | m_logFileName |
Copy of file name for events. More... | |
Fw::ExternalSerializeBuffer | m_buffer |
Serialize buffer to hold the binary sequence data. More... | |
NATIVE_INT_TYPE | m_allocatorId |
The allocator ID. More... | |
Header | m_header |
The sequence header. More... | |
A sequence with unspecified binary format.
Definition at line 50 of file CmdSequencerImpl.hpp.
Svc::CmdSequencerComponentImpl::Sequence::Sequence | ( | CmdSequencerComponentImpl & | component | ) |
Construct a Sequence object.
component | The enclosing component |
Definition at line 16 of file Sequence.cpp.
|
virtual |
Destroy a Sequence object.
Definition at line 25 of file Sequence.cpp.
void Svc::CmdSequencerComponentImpl::Sequence::allocateBuffer | ( | NATIVE_INT_TYPE | identifier, |
Fw::MemAllocator & | allocator, | ||
NATIVE_UINT_TYPE | bytes | ||
) |
Give the sequence representation a memory buffer.
identifier | The identifier |
allocator | The allocator |
bytes | The number of bytes |
Definition at line 76 of file Sequence.cpp.
|
pure virtual |
Clear the sequence records. After calling this, hasMoreRecords should return false
Implemented in Svc::AMPCSSequence, and Svc::CmdSequencerComponentImpl::FPrimeSequence.
void Svc::CmdSequencerComponentImpl::Sequence::deallocateBuffer | ( | Fw::MemAllocator & | allocator | ) |
Deallocate the buffer.
allocator | The allocator |
Definition at line 93 of file Sequence.cpp.
Fw::CmdStringArg & Svc::CmdSequencerComponentImpl::Sequence::getFileName | ( | ) |
const CmdSequencerComponentImpl::Sequence::Header & Svc::CmdSequencerComponentImpl::Sequence::getHeader | ( | ) | const |
Get the sequence header.
Definition at line 104 of file Sequence.cpp.
Fw::LogStringArg & Svc::CmdSequencerComponentImpl::Sequence::getLogFileName | ( | ) |
|
pure virtual |
Query whether the sequence has any more records
Implemented in Svc::AMPCSSequence, and Svc::CmdSequencerComponentImpl::FPrimeSequence.
|
pure virtual |
Load a sequence file
fileName | The file name |
Implemented in Svc::AMPCSSequence, and Svc::CmdSequencerComponentImpl::FPrimeSequence.
|
pure virtual |
Get the next record in the sequence Asserts on failure
record | The returned record |
Implemented in Svc::CmdSequencerComponentImpl::FPrimeSequence.
|
pure virtual |
Reset the sequence to the beginning. After calling this, hasMoreRecords should return true, unless the sequence has no records
Implemented in Svc::AMPCSSequence, and Svc::CmdSequencerComponentImpl::FPrimeSequence.
void Svc::CmdSequencerComponentImpl::Sequence::setFileName | ( | const Fw::StringBase & | fileName | ) |
Set the file name. Also sets the log file name.
Definition at line 110 of file Sequence.cpp.
|
protected |
The allocator ID.
Definition at line 284 of file CmdSequencerImpl.hpp.
|
protected |
Serialize buffer to hold the binary sequence data.
Definition at line 281 of file CmdSequencerImpl.hpp.
|
protected |
The enclosing component.
Definition at line 269 of file CmdSequencerImpl.hpp.
|
protected |
Event reporting.
Definition at line 272 of file CmdSequencerImpl.hpp.
|
protected |
The sequence file name.
Definition at line 275 of file CmdSequencerImpl.hpp.
|
protected |
The sequence header.
Definition at line 287 of file CmdSequencerImpl.hpp.
|
protected |
Copy of file name for events.
Definition at line 278 of file CmdSequencerImpl.hpp.