F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
ActiveTextLogger.hpp
Go to the documentation of this file.
1
// \copyright
2
// Copyright 2009-2015, by the California Institute of Technology.
3
// ALL RIGHTS RESERVED. United States Government Sponsorship
4
// acknowledged.
5
6
7
#ifndef ACTIVETEXTLOGGERIMPL_HPP_
8
#define ACTIVETEXTLOGGERIMPL_HPP_
9
10
#include <
Svc/ActiveTextLogger/ActiveTextLoggerComponentAc.hpp
>
11
#include <
Svc/ActiveTextLogger/LogFile.hpp
>
12
13
14
namespace
Svc
{
15
23
24
class
ActiveTextLogger
:
public
ActiveTextLoggerComponentBase
{
25
26
public
:
27
36
explicit
ActiveTextLogger
(
const
char
* compName);
37
40
virtual
~ActiveTextLogger
();
41
49
void
init
(
NATIVE_INT_TYPE
queueDepth,
NATIVE_INT_TYPE
instance = 0);
50
61
bool
set_log_file
(
const
char
* fileName,
const
U32 maxSize,
const
U32 maxBackups = 10);
62
63
64
PRIVATE:
65
66
// ----------------------------------------------------------------------
67
// Prohibit Copying
68
// ----------------------------------------------------------------------
69
73
ActiveTextLogger
(
const
ActiveTextLogger
&);
74
78
ActiveTextLogger
& operator=(
const
ActiveTextLogger
&);
79
80
// ----------------------------------------------------------------------
81
// Constants/Types
82
// ----------------------------------------------------------------------
83
84
// ----------------------------------------------------------------------
85
// Member Functions
86
// ----------------------------------------------------------------------
87
88
// ----------------------------------------------------------------------
89
// Handlers to implement for typed input ports
90
// ----------------------------------------------------------------------
91
93
//
94
virtual
void
TextLogger_handler(
95
NATIVE_INT_TYPE
portNum,
96
FwEventIdType
id
,
97
Fw::Time
&timeTag,
98
const
Fw::LogSeverity
& severity,
99
Fw::TextLogString
&text
100
);
101
102
// ----------------------------------------------------------------------
103
// Internal interface handlers
104
// ----------------------------------------------------------------------
105
108
virtual
void
TextQueue_internalInterfaceHandler(
109
const
Fw::InternalInterfaceString
& text
110
);
111
112
// ----------------------------------------------------------------------
113
// Member Variables
114
// ----------------------------------------------------------------------
115
116
// The optional file to text logs to:
117
LogFile
m_log_file;
118
119
};
24
class
ActiveTextLogger
:
public
ActiveTextLoggerComponentBase
{
…
};
120
121
}
122
#endif
/* ACTIVETEXTLOGGERIMPL_HPP_ */
ActiveTextLoggerComponentAc.hpp
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
FwEventIdType
U32 FwEventIdType
Definition
FpConfig.h:62
LogFile.hpp
Fw::InternalInterfaceString
Definition
InternalInterfaceString.hpp:10
Fw::LogSeverity
Enum representing event severity.
Definition
LogSeverityEnumAc.hpp:19
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::TextLogString
Definition
TextLogString.hpp:10
Fw::Time
Definition
Time.hpp:9
Svc::ActiveTextLoggerComponentBase
Auto-generated base for ActiveTextLogger component.
Definition
ActiveTextLoggerComponentAc.hpp:27
Svc::ActiveTextLogger
Definition
ActiveTextLogger.hpp:24
Svc::ActiveTextLogger::ActiveTextLogger
ActiveTextLogger(const char *compName)
Component constructor.
Definition
ActiveTextLogger.cpp:17
Svc::ActiveTextLogger::~ActiveTextLogger
virtual ~ActiveTextLogger()
Component destructor.
Definition
ActiveTextLogger.cpp:24
Svc::ActiveTextLogger::set_log_file
bool set_log_file(const char *fileName, const U32 maxSize, const U32 maxBackups=10)
Set log file and max size.
Definition
ActiveTextLogger.cpp:135
Svc
Definition
ActiveRateGroupCfg.hpp:18
Svc::LogFile
LogFile struct.
Definition
LogFile.hpp:22
Svc
ActiveTextLogger
ActiveTextLogger.hpp
Generated by
1.10.0