Skip to content
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

Remove FW_ARRAY_TO_STRING #375 #447

Merged
merged 11 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ case class ArrayCppWriter (
)
) ++
wrapClassMembersInIfDirective(
"\n#if FW_ARRAY_TO_STRING",
"\n#ifdef FW_SERIALIZABLE_TO_STRING",
List(
functionClassMember(
Some("Convert array to string"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -355,12 +355,12 @@ case class EnumCppWriter(
List.concat(
List(
linesClassMember(
lines("\n#if FW_SERIALIZABLE_TO_STRING"),
lines("\n#ifdef FW_SERIALIZABLE_TO_STRING"),
CppDoc.Lines.Cpp
)
),
wrapClassMembersInIfDirective(
"\n#if FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING",
"\n#ifdef FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING",
bocchino marked this conversation as resolved.
Show resolved Hide resolved
List(
functionClassMember(
Some(s"Convert enum to string"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ case class StructCppWriter(
)
),
wrapClassMembersInIfDirective(
"\n#if FW_SERIALIZABLE_TO_STRING",
"\n#ifdef FW_SERIALIZABLE_TO_STRING",
List(
functionClassMember(
Some("Convert struct to string"),
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/AArrayAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Fw::SerializeStatus A ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void A ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/AArrayAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class A :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Fw::SerializeStatus AbsType ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void AbsType ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class AbsType :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Fw::SerializeStatus BuiltInType ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void BuiltInType ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class BuiltInType :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/C_AArrayAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Fw::SerializeStatus C_A ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void C_A ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/C_AArrayAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class C_A :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/E1EnumAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace M {
return status;
}

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void E1 ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/E1EnumAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING
#ifdef FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING

//! Convert enum to string
void toString(
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/E2EnumAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Fw::SerializeStatus E2 ::
return status;
}

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void E2 ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/E2EnumAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class E2 :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING
#ifdef FW_SERIALIZABLE_TO_STRING || FW_ENABLE_TEXT_LOGGING

//! Convert enum to string
void toString(
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/Enum1ArrayAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Fw::SerializeStatus Enum1 ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void Enum1 ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/Enum1ArrayAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Enum1 :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/Enum2ArrayAc.ref.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Fw::SerializeStatus Enum2 ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void Enum2 ::
toString(Fw::StringBase& sb) const
Expand Down
2 changes: 1 addition & 1 deletion compiler/tools/fpp-to-cpp/test/array/Enum2ArrayAc.ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Enum2 :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Fw::SerializeStatus HeaderPath ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void HeaderPath ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class HeaderPath :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Fw::SerializeStatus PrimitiveArray ::
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveArray ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class PrimitiveArray :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveBool ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveF32e ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveF32f ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveF64 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveI32 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveI64 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveU16 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace M {
return status;
}

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void PrimitiveU8 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_ARRAY_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert array to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ namespace M {
return status;
}

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void S1 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace M {
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert struct to string
void toString(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Fw::SerializeStatus S2 ::
return status;
}

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

void S2 ::
toString(Fw::StringBase& sb) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class S2 :
Fw::SerializeBufferBase& buffer //!< The serial buffer
);

#if FW_SERIALIZABLE_TO_STRING
#ifdef FW_SERIALIZABLE_TO_STRING

//! Convert struct to string
void toString(
Expand Down
Loading
Loading