mirror of
https://github.com/nasa/fprime.git
synced 2025-12-13 19:47:44 -06:00
Instead of adding the name argument to a constructor when FW_OBJECT_NAMES is enabled, always supply a name argument. Add a marco that conditionally sets the name to "" if FW_OBJECT_NAMES is not set. This cleans up a lot of the conditional compilation switches that weren't being tested and would silently break, while still stripping the strings from the binary.
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
// ======================================================================
|
|
// \title LinuxTimerImpl.cpp
|
|
// \author tim
|
|
// \brief cpp file for LinuxTimer component implementation class
|
|
//
|
|
// \copyright
|
|
// Copyright 2009-2015, by the California Institute of Technology.
|
|
// ALL RIGHTS RESERVED. United States Government Sponsorship
|
|
// acknowledged.
|
|
//
|
|
// ======================================================================
|
|
|
|
|
|
#include <Svc/LinuxTimer/LinuxTimerComponentImpl.hpp>
|
|
#include "Fw/Types/BasicTypes.hpp"
|
|
|
|
namespace Svc {
|
|
|
|
// ----------------------------------------------------------------------
|
|
// Construction, initialization, and destruction
|
|
// ----------------------------------------------------------------------
|
|
|
|
LinuxTimerComponentImpl ::
|
|
LinuxTimerComponentImpl(
|
|
const char *const compName
|
|
) : LinuxTimerComponentBase(compName),
|
|
m_quit(false)
|
|
{
|
|
|
|
}
|
|
|
|
void LinuxTimerComponentImpl ::
|
|
init(
|
|
const NATIVE_INT_TYPE instance
|
|
)
|
|
{
|
|
LinuxTimerComponentBase::init(instance);
|
|
}
|
|
|
|
LinuxTimerComponentImpl ::
|
|
~LinuxTimerComponentImpl(void)
|
|
{
|
|
|
|
}
|
|
|
|
void LinuxTimerComponentImpl::quit(void) {
|
|
this->m_quit = true;
|
|
}
|
|
|
|
} // end namespace Svc
|