|
F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Svc/ComLogger/ComLogger.hpp>
Public Types | |
| enum | { MAX_FILENAME_SIZE = NAME_MAX, MAX_PATH_SIZE = PATH_MAX } |
| enum | FileMode { CLOSED = 0, OPEN = 1 } |
Public Types inherited from Svc::ComLoggerComponentBase | |
| enum | { NUM_COMIN_INPUT_PORTS = 1, NUM_CMDIN_INPUT_PORTS = 1, NUM_PINGIN_INPUT_PORTS = 1 } |
| enum | { NUM_TIMECALLER_OUTPUT_PORTS = 1, NUM_CMDREGOUT_OUTPUT_PORTS = 1, NUM_LOGOUT_OUTPUT_PORTS = 1, NUM_CMDRESPONSEOUT_OUTPUT_PORTS = 1, NUM_PINGOUT_OUTPUT_PORTS = 1, NUM_LOGTEXT_OUTPUT_PORTS = 1 } |
Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Additional Inherited Members | |
Static Public Member Functions inherited from Svc::ComLoggerComponentBase | |
| static void | m_p_cmdIn_in (Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| static void | m_p_pingIn_in (Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, U32 key) |
Static Public Member Functions inherited from Fw::ActiveComponentBase | |
| static void | s_baseBareTask (void *) |
| function provided to task class for new thread. More... | |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init (void) |
| Object initializer. More... | |
Definition at line 22 of file ComLogger.hpp.
| anonymous enum |
| Enumerator | |
|---|---|
| MAX_FILENAME_SIZE | |
| MAX_PATH_SIZE | |
Definition at line 76 of file ComLogger.hpp.
| Enumerator | |
|---|---|
| CLOSED | |
| OPEN | |
Definition at line 88 of file ComLogger.hpp.
| Svc::ComLogger::ComLogger | ( | const char * | compName, |
| const char * | filePrefix, | ||
| U32 | maxFileSize, | ||
| bool | storeBufferLength = true |
||
| ) |
Definition at line 19 of file ComLogger.cpp.
| Svc::ComLogger::~ComLogger | ( | void | ) |
Definition at line 53 of file ComLogger.cpp.
| void Svc::ComLogger::closeFile | ( | ) |
Definition at line 183 of file ComLogger.cpp.
| void Svc::ComLogger::CloseFile_cmdHandler | ( | FwOpcodeType | opCode, |
| U32 | cmdSeq | ||
| ) |
Definition at line 120 of file ComLogger.cpp.
| void Svc::ComLogger::init | ( | NATIVE_INT_TYPE | queueDepth, |
| NATIVE_INT_TYPE | instance | ||
| ) |
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 44 of file ComLogger.cpp.
| void Svc::ComLogger::openFile | ( | ) |
Definition at line 140 of file ComLogger.cpp.
|
virtual |
Handler implementation for pingIn
| portNum | The port number |
| key | Value to return to pinger |
Implements Svc::ComLoggerComponentBase.
Definition at line 130 of file ComLogger.cpp.
| void Svc::ComLogger::writeComBufferToFile | ( | Fw::ComBuffer & | data, |
| U16 | size | ||
| ) |
Definition at line 203 of file ComLogger.cpp.
| void Svc::ComLogger::writeHashFile | ( | void | ) |
Definition at line 250 of file ComLogger.cpp.
| bool Svc::ComLogger::writeToFile | ( | void * | data, |
| U16 | length | ||
| ) |
Definition at line 228 of file ComLogger.cpp.
| PRIVATE Svc::ComLogger::__pad0__ |
Definition at line 52 of file ComLogger.hpp.
| U32 Svc::ComLogger::byteCount |
Definition at line 97 of file ComLogger.hpp.
| PRIVATE Fw::ComBuffer U32 Svc::ComLogger::context |
Definition at line 57 of file ComLogger.hpp.
| PRIVATE Fw::ComBuffer& Svc::ComLogger::data |
Definition at line 56 of file ComLogger.hpp.
| Os::File Svc::ComLogger::file |
Definition at line 94 of file ComLogger.hpp.
| FileMode Svc::ComLogger::fileMode |
Definition at line 93 of file ComLogger.hpp.
| U8 Svc::ComLogger::fileName[MAX_FILENAME_SIZE+MAX_PATH_SIZE] |
Definition at line 95 of file ComLogger.hpp.
| U8 Svc::ComLogger::filePrefix[MAX_FILENAME_SIZE+MAX_PATH_SIZE] |
Definition at line 82 of file ComLogger.hpp.
| U8 Svc::ComLogger::hashFileName[MAX_FILENAME_SIZE+MAX_PATH_SIZE] |
Definition at line 96 of file ComLogger.hpp.
| U32 Svc::ComLogger::maxFileSize |
Definition at line 83 of file ComLogger.hpp.
| bool Svc::ComLogger::openErrorOccured |
Definition at line 99 of file ComLogger.hpp.
| bool Svc::ComLogger::storeBufferLength |
Definition at line 100 of file ComLogger.hpp.
| bool Svc::ComLogger::writeErrorOccured |
Definition at line 98 of file ComLogger.hpp.