| 235 | #endif |
| 236 | |
| 237 | bool CStatTreeItemSimple::IsVisible() const |
| 238 | { |
| 239 | if (m_flags & stHideIfZero) { |
| 240 | switch (m_valuetype) { |
| 241 | case vtInteger: return m_intvalue != 0; |
| 242 | case vtFloat: return m_floatvalue != 0.0; |
| 243 | case vtString: return !m_stringvalue.IsEmpty(); |
| 244 | default: return false; |
| 245 | } |
| 246 | } |
| 247 | return true; |
| 248 | } |
| 249 | |
| 250 | void CStatTreeItemSimple::AddECValues(CECTag *tag) const |
| 251 | { |
no test coverage detected