ReactOS  0.4.12-dev-36-g472787f
tmdump::state_link Class Reference
Inheritance diagram for tmdump::state_link:
Collaboration diagram for tmdump::state_link:

Public Member Functions

void operator() (const struct state_mapping_t &mapping_)
 

Private Attributes

tm_classes_t::iterator m_class
 

Detailed Description

Definition at line 416 of file themedump.cpp.

Member Function Documentation

◆ operator()()

Definition at line 422 of file themedump.cpp.

423  {
424  // switch to a new class
425  if(mapping_.classname)
426  m_class = tm_classes.find(std::wstring(mapping_.classname));
427 
428  // no mapping, or class not found
429  if(mapping_.states == NULL || m_class == tm_classes.end()) return;
430 
431  tm_state_enums_t::iterator states =
432  tm_state_enums.find(std::wstring(mapping_.states));
433 
434  // unknown set of states
435  if(states == tm_state_enums.end()) return;
436 
437  tm_parts_t::iterator part = m_class->second.find(mapping_.partid);
438 
439  // unknown part
440  if(part == m_class->second.end()) return;
441 
442  // success
443  part->second.states = states;
444  }
smooth NULL
Definition: ftsmooth.c:416
static tm_classes_t tm_classes
Definition: themedump.cpp:63
static tm_state_enums_t tm_state_enums
Definition: themedump.cpp:51

Member Data Documentation

◆ m_class

tm_classes_t::iterator tmdump::state_link::m_class
private

Definition at line 419 of file themedump.cpp.


The documentation for this class was generated from the following file: