-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ActiveTextLogger
naming to match build system naming expectations
#2509
Conversation
@@ -35,7 +35,7 @@ | |||
// Handlers to implement for typed input ports | |||
// ---------------------------------------------------------------------- | |||
|
|||
void ActiveTextLoggerComponentImpl::TextLogger_handler(NATIVE_INT_TYPE portNum, | |||
void ActiveTextLogger::TextLogger_handler(NATIVE_INT_TYPE portNum, |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
@@ -132,7 +132,7 @@ | |||
// Helper Methods | |||
// ---------------------------------------------------------------------- | |||
|
|||
bool ActiveTextLoggerComponentImpl::set_log_file(const char* fileName, const U32 maxSize, const U32 maxBackups) | |||
bool ActiveTextLogger::set_log_file(const char* fileName, const U32 maxSize, const U32 maxBackups) |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
@@ -132,7 +132,7 @@ | |||
// Helper Methods | |||
// ---------------------------------------------------------------------- | |||
|
|||
bool ActiveTextLoggerComponentImpl::set_log_file(const char* fileName, const U32 maxSize, const U32 maxBackups) | |||
bool ActiveTextLogger::set_log_file(const char* fileName, const U32 maxSize, const U32 maxBackups) |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
{ | ||
|
||
} | ||
|
||
void ActiveTextLoggerComponentImpl::init(NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) | ||
void ActiveTextLogger::init(NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
{ | ||
|
||
} | ||
|
||
void ActiveTextLoggerComponentImpl::init(NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) | ||
void ActiveTextLogger::init(NATIVE_INT_TYPE queueDepth, NATIVE_INT_TYPE instance) |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
@@ -14,19 +14,19 @@ | |||
// Initialization/Exiting | |||
// ---------------------------------------------------------------------- | |||
|
|||
ActiveTextLoggerComponentImpl::ActiveTextLoggerComponentImpl(const char* name) : | |||
ActiveTextLogger::ActiveTextLogger(const char* name) : |
Check notice
Code scanning / CodeQL
Use of basic integral type Note
@@ -35,7 +35,7 @@ | |||
// Handlers to implement for typed input ports | |||
// ---------------------------------------------------------------------- | |||
|
|||
void ActiveTextLoggerComponentImpl::TextLogger_handler(NATIVE_INT_TYPE portNum, | |||
void ActiveTextLogger::TextLogger_handler(NATIVE_INT_TYPE portNum, |
Check notice
Code scanning / CodeQL
Function too long Note
@@ -35,7 +35,7 @@ | |||
// Handlers to implement for typed input ports | |||
// ---------------------------------------------------------------------- | |||
|
|||
void ActiveTextLoggerComponentImpl::TextLogger_handler(NATIVE_INT_TYPE portNum, | |||
void ActiveTextLogger::TextLogger_handler(NATIVE_INT_TYPE portNum, |
Check notice
Code scanning / CodeQL
Long function without assertion Note
@kbotteon we previously added headers that However, renaming is a much better fix and since you are doing a single component....I wholeheartedly approve! |
Change Description
This PR updates file names and
CMakeLists
forActiveTextLogger
to conform with what I believe the build system requires. See Rationale below.I could also be completely overlooking a pattern or small detail, so please let me know if this change is unnecessary! I can't imagine I'm the first person to run into this problem with such a common Component, so I suspect another issue in my configuration might be involved.
Rationale
Including
ActiveTextLogger
in a topology leads to a compiler error in an auto-coded file:If I change the fpp to use
ActiveTextLoggerImpl
, now the build fails atfpp-to-cpp
:I think the latest build system expects naming like
Svc/<ComponentName>/<ComponentName>
without theComponentImpl
class orImpl
file suffixes.Testing/Review Recommendations
My topology including
ActiveTextLogger
now compiles.fprime-util check –all
runs with100% tests passed, 0 tests failed out of 54
.