Skip to content

Commit

Permalink
Use fully qualified namespace and name in AC component .hpp (#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrosemurgy authored Mar 17, 2023
1 parent e9c2144 commit 35625eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//
// ======================================================================

\#ifndef ${name.upper()}_COMP_HPP_
\#define ${name.upper()}_COMP_HPP_
\#ifndef ${namespace.upper().replace("::", "_")}_${name.upper()}_COMP_HPP_
\#define ${namespace.upper().replace("::", "_")}_${name.upper()}_COMP_HPP_

\#include <FpConfig.hpp>
\#include <Fw/Port/InputSerializePort.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,10 @@ def initPreamble(self, obj, c):
c.component_base = c.name() + "ComponentBase"
if obj.get_namespace() is None:
c.namespace_list = None
c.namespace = ""
else:
c.namespace_list = obj.get_namespace().split("::")
c.namespace = obj.get_namespace()
c.user = getuser()
c.args_string = self.argsString
c.doxygen_pre_comment = self.doxygenPreComment
Expand Down

0 comments on commit 35625eb

Please sign in to comment.