F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
LogAssert.hpp
Go to the documentation of this file.
1 /*
2  * LogAssert.hpp
3  *
4  * Created on: Sep 9, 2016
5  * Author: tcanham
6  * Note: this file was originally a log assert file, under Fw::Types. It now made generic
7  * to log asserts to Fw::Logger
8  */
9 
10 #ifndef LOGGER_LOGASSERT_HPP_
11 #define LOGGER_LOGASSERT_HPP_
12 
13 #include <Fw/Types/Assert.hpp>
14 
15 namespace Fw {
16 
17  class LogAssertHook: public Fw::AssertHook {
18  public:
20  virtual ~LogAssertHook();
22  FILE_NAME_ARG file,
23  NATIVE_UINT_TYPE lineNo,
24  NATIVE_UINT_TYPE numArgs,
25  FwAssertArgType arg1,
26  FwAssertArgType arg2,
27  FwAssertArgType arg3,
28  FwAssertArgType arg4,
29  FwAssertArgType arg5,
30  FwAssertArgType arg6
31  );
32  void printAssert(const CHAR* msg);
33  void doAssert();
34  };
35 
36 }
37 
38 #endif /* VXWORKSLOGASSERT_HPP_ */
#define FILE_NAME_ARG
Definition: Assert.hpp:16
char CHAR
Definition: BasicTypes.h:28
PlatformUIntType NATIVE_UINT_TYPE
Definition: BasicTypes.h:52
PlatformAssertArgType FwAssertArgType
Definition: FpConfig.h:34
virtual ~LogAssertHook()
void printAssert(const CHAR *msg)
void reportAssert(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
destructor