#ifdef VHDL

/*
 * $Id: Vhdl_get_configuration.cpp 113 2009-04-14 18:39:12Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Vhdl.h"
#include "Common/include/Tabulation.h"

namespace morpheo              {
namespace behavioural          {
  
#undef  FUNCTION
#define FUNCTION "Vhdl::get_configuration"
  std::string Vhdl::get_configuration (uint32_t    depth             ,
                                       std::string entity_name       ,
                                       std::string configuration_name)
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");

    std::ostringstream text;

    text << "";

//     std::string tab0=morpheo::tab(depth);
//     std::string tab1=morpheo::tab(depth+1);
//     std::string tab2=morpheo::tab(depth+2);
//     std::string name_architecture_old = _name_architecture;

//     text << tab0 << "configuration " << configuration_name << " of " << entity_name << " is" << std::endl;
//     for (std::map<std::string,vhdl_architecture_t>::iterator it = _architecture.begin();
//          it!=_architecture.end();
//          ++it)
//       {
//         std::string name = it->first;
//         set_architecture(name);
        
//         text << tab1 << "for " << name << std::endl;
        
//         text << tab1 << "end for;" << std::endl;
//       }
//     text << tab0 << "end configuration " << configuration_name << ";" << std::endl;

//     set_architecture (name_architecture_old);

    log_printf(FUNC,Behavioural,FUNCTION,"End");

    return text.str();
  };
  
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
