Template Function gpa::detail::WriteStructureFieldStr

Function Documentation

template<typename T>
inline std::stringstream &gpa::detail::WriteStructureFieldStr(std::stringstream &strStr, StrFmtFlags strFmtFlags, uint32_t tabCount, uint32_t tabSize, char const *fieldName, T const &obj)

Writes a given structure field to a given std::stringstream.

Note

tabCount only has an effect if strFmtFlags has the GPA_STR_FMT_FORMATTED bit set

Note

tabSize only has an effect if strFmtFlags has the GPA_STR_FMT_FORMATTED bit set

Parameters
  • <T> -- The type of the field to write

  • strStr -- [in] A reference to the std::stringstream to write to

  • strFmtFlags -- [in] A bit mask of flags controlling the resulting std::stringstream's formatting

  • tabCount -- [in] A reference to the tab count to begin the structure at

  • tabSize -- [in] The number of spaces to use for a tab

  • fieldName -- [in] A pointer to a null terminated C string containing the name of the field to write

  • obj -- [in] The field to write