MCPcopy Create free account
hub / github.com/PDAL/PDAL / _numericalNodeTypeStr

Function _numericalNodeTypeStr

plugins/e57/libE57Format/src/WriterImpl.cpp:45–73  ·  view source on GitHub ↗

! @brief Convert e57::NumericalNodeType into human-readable string. @param inNodeType node type to convert @return human-readable representation of node type or "Unknown: ". */

Source from the content-addressed store, hash-verified

43 @return human-readable representation of node type or "Unknown: <node type int>".
44 */
45 std::string _numericalNodeTypeStr( e57::NumericalNodeType inNodeType )
46 {
47 switch ( inNodeType )
48 {
49 case e57::NumericalNodeType::Integer:
50 {
51 return "Integer";
52 }
53
54 case e57::NumericalNodeType::ScaledInteger:
55 {
56 return "ScaledInteger";
57 }
58
59 case e57::NumericalNodeType::Float:
60 {
61 return "Float";
62 }
63
64 case e57::NumericalNodeType::Double:
65 {
66 return "Double";
67 }
68
69 default:
70 return std::string( "Unknown: " )
71 .append( std::to_string( static_cast<int>( inNodeType ) ) );
72 }
73 }
74}
75
76namespace e57

Callers 1

NewData3DMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected