F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 #ifndef Svc_BufferLogger_HPP
14 #define Svc_BufferLogger_HPP
106 const void *
const data,
161 const char *
const compName
176 const char *
const logFilePrefix,
177 const char *
const logFileSuffix,
178 const U32 maxFileSize,
190 void bufferSendIn_handler(
225 void BL_OpenFile_cmdHandler(
BufferLogger(const char *const compName)
Create a BufferLogger object.
void setBaseName(const Fw::EightyCharString &baseName)
Set base file name.
Os::File osFile
The underlying Os::File representation.
#define PRIVATE
overridable private for unit testing
void close(void)
Close the file.
U32 maxSize
The maximum file size.
void closeAndEmitEvent(void)
Close the file and emit an event.
uint8_t U8
8-bit unsigned integer
File(BufferLogger &bufferLogger)
Construct a File object.
PRIVATE NATIVE_INT_TYPE portNum
void initLog(const char *const logFilePrefix, const char *const logFileSuffix, const U32 maxFileSize, const U8 sizeOfSize)
Set up log file parameters.
void comIn_handler(const NATIVE_INT_TYPE portNum, Fw::ComBuffer &data, U32 context)
void writeHashFile(void)
Write a hash file.
void init(void)
Object initializer.
void logBuffer(const U8 *const data, const U32 size)
Log a buffer.
void BL_CloseFile_cmdHandler(const FwOpcodeType opCode, const U32 cmdSeq)
bool flush(void)
Flush the file.
Fw::EightyCharString name
The name of the currently open file.
PRIVATE Fw::Buffer & fwBuffer
#define FwOpcodeType
Type representation for a command opcode.
unsigned int NATIVE_UINT_TYPE
native unsigned integer type declaration
bool writeBuffer(const U8 *const data, const U32 size)
NATIVE_UINT_TYPE fileCounter
The counter to use for the same file name.
PRIVATE const U32 const Fw::CmdStringArg & file
PROTECTED LogState_MAX LogState
Fw::EightyCharString baseName
The file name base.
bool writeBytes(const void *const data, const U32 length)
U32 bytesWritten
The number of bytes written to the current file.
void BL_SetLogging_cmdHandler(const FwOpcodeType opCode, const U32 cmdSeq, LogState state)
~File(void)
Destroy a File object.
void schedIn_handler(const NATIVE_INT_TYPE portNum, NATIVE_UINT_TYPE context)
U8 sizeOfSize
The number of bytes to use when storing the size field at the start of each buffer.
Auto-generated base for BufferLogger component.
int NATIVE_INT_TYPE
native integer type declaration
void BL_FlushFile_cmdHandler(const FwOpcodeType opCode, const U32 cmdSeq)
Fw::EightyCharString suffix
The suffix to use for file names.
Fw::EightyCharString prefix
The prefix to use for file names.
void pingIn_handler(const NATIVE_INT_TYPE portNum, U32 key)
void init(const char *const prefix, const char *const suffix, const U32 maxSize, const U8 sizeOfSize)
Set File object parameters.
bool writeSize(const U32 size)