MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetAsString

Method GetAsString

cpp/src/value_classes/ValueRaw.cpp:98–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98string const ValueRaw::GetAsString
99(
100) const
101{
102 string str = "";
103 char bstr[10];
104
105 for( uint32 i=0; i<m_valueLength; ++i )
106 {
107 if( i )
108 {
109 str += " ";
110 }
111 snprintf( bstr, sizeof(bstr), "0x%.2x", m_value[i] );
112 str += bstr;
113 }
114
115 return str;
116}
117
118bool ValueRaw::SetFromString
119(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected