try {
- if(m_itemsMap.empty())
- std::cout<< "no tengo nada "<< std::endl;
for( ItemsMap::iterator it= this->m_itemsMap.begin(); it!=this->m_itemsMap.end(); ++it )
{
if( (*it).first.compare(buttonName) == 0 )
+ {
+ std::cout<<"debe retornar" << std::endl;
return ( (*it).second );
+ }
}
{
if( type == 0 )
this->AddButton( *it );
- else if( type == 1 )
+ else if( type == 1 || type == 2)
this->AddItems(*it);
+
}//rof
}//yrt
catch ( std::exception& e )
}//hctac
}
-
-//EED-MLER
-/*
void
ButtonContainerSettings::AddItems(BCPSettingsStruct* info)
{
//I don't know the try catch doesn't work!!
if ( info->panel == NULL )
{
- std::cerr << "ButtonContainerSettings::AddButton"
+ std::cerr << "ButtonContainerSettings::AddItems"
<< "exception: NULL Pointer in panel " << std::endl;
exit( 1 );
}
}//yrt
catch ( const std::exception& e )
{
-<<<<<<< HEAD
- try
- {
- for( BCStructVectorType::iterator it = infoList.begin( ); it
- != infoList.end( ); ++it )
- {
- this->AddItem(*it);
- }//rof
- }//yrt
- catch ( const std::exception& e )
- {
- std::cerr
- << "ContainerSettings::AddButtons( BCStructVectorType infoList ) "
- << "exception: " << e.what( ) << std::endl;
- }//hctac
- }
-*/
-=======
std::cerr
<< "ButtonContainerSettings::AddButton( BCPSettingsStruct* info )"
<< "exception: " << e.what( ) << std::endl;
ButtonContainerSettings::GetItemsMap()
{
std::cout<< "MLER | ButtonContainerSettings:: GetItemsMap()" << std::endl;
+
return m_itemsMap;
}
->>>>>>> b8c5a565c70ac0def1f21518afa2d847a9582d79
// ----------------------------------------------------------------------------------
}//ecapseman
-