Logo Search packages:      
Sourcecode: ktechlab version File versions

MicroData MicroSettings::microData (  )  const

Returns microdata to describe the microsettings. This includes ports settins and variable settings

Definition at line 207 of file microsettings.cpp.

References MicroInfo::id(), microInfo(), and pinMappings().

{
      MicroData data;
      data.id = microInfo()->id();
      data.pinMappings = pinMappings();
      
      const PinSettingsList::const_iterator pinListEnd = m_pinSettingsList.end();
      for ( PinSettingsList::const_iterator it = m_pinSettingsList.begin(); it != pinListEnd; ++it )
      {
            data.pinMap[(*it)->id()].type = (*it)->type();
            data.pinMap[(*it)->id()].state= (*it)->state();
      }
      
      const VariableMap::const_iterator variableMapEnd = m_variableMap.end();
      for ( VariableMap::const_iterator it = m_variableMap.begin(); it != variableMapEnd; ++it )
      {
            if ( it.data().permanent )
                  data.variableMap[it.key()] = it.data().valueAsString();
      } 
      
      return data;
}


Generated by  Doxygen 1.6.0   Back to index