source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Parameters_msg_error.cpp @ 75

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 954 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Generic/Counter/include/Parameters.h"
9#include "Behavioural/Generic/Counter/include/Types.h"
10#include <sstream>
11
12namespace morpheo                    {
13namespace behavioural {
14namespace generic {
15namespace counter {
16
17
18  std::string Parameters::msg_error(void)
19  {
20    log_printf(FUNC,Counter,"msg_error","Begin");
21
22    std::string msg = "";
23
24    if (_size_data < 1)
25      {
26        msg += "  - size_data must be > 0\n";
27        msg += "    * size_data                       : " + toString(_size_data) + "\n";
28      }
29
30    if (_nb_port < 1)
31      {
32        msg += "  - nb_port must be > 0\n";
33        msg += "    * nb_port                         : " + toString(_nb_port) + "\n";
34      }
35
36    return msg;
37
38    log_printf(FUNC,Counter,"msg_error","End");
39  };
40
41}; // end namespace counter
42}; // end namespace generic
43
44}; // end namespace behavioural
45}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.