source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Generator_getLink.cpp @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 752 bytes
Line 
1/*
2 * $Id: Generator_getLink.cpp 88 2008-12-10 18:31:39Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Configuration/include/Generator.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace configuration {
13
14#undef  FUNCTION
15#define FUNCTION "Generator::getLink"
16  Link_definition * Generator::getLink (std::string name)
17  {
18    log_begin(Configuration,FUNCTION);
19
20    std::map<std::string, Link_definition *>::iterator it_link = _array_link->find(name);
21   
22    if (it_link == _array_link->end())
23      {
24        throw (ERRORMORPHEO(FUNCTION,toString(_("Link \"%s\" is unknow.\n"),name.c_str())));
25      }
26
27    log_end(Configuration,FUNCTION);
28
29    return it_link->second;
30  };
31
32}; // end namespace configuration
33}; // end namespace behavioural
34}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.