MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / pglFieldStatisticsToCSVString

Function pglFieldStatisticsToCSVString

openpgl/api/api.cpp:847–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845}
846
847extern "C" OPENPGL_DLLEXPORT PGLString pglFieldStatisticsToCSVString(PGLFieldStatistics fieldStatistics)
848{
849 auto *gFieldStatistics = (openpgl::FieldStatistics *)fieldStatistics;
850 std::string str = gFieldStatistics->toCSVString();
851 PGLString pglStr;
852 pglStr.m_size = str.length() + 1;
853 pglStr.m_str = new char[pglStr.m_size];
854 strcpy(pglStr.m_str, str.c_str());
855 return pglStr;
856}
857
858///////////////////////////////////////////////////////////////////////////////
859// String /////////////////////////////////////////////////////////////////////

Callers 1

ToCSVStringMethod · 0.85

Calls 1

toCSVStringMethod · 0.45

Tested by

no test coverage detected