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

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 965 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>
11using namespace std;
12
13namespace morpheo                    {
14namespace behavioural {
15namespace generic {
16namespace counter {
17
18
19  string Parameters::msg_error(void)
20  {
21    log_printf(FUNC,Counter,"msg_error","Begin");
22
23    string msg = "";
24
25    if (_size_data < 1)
26      {
27        msg += "  - size_data must be > 0\n";
28        msg += "    * size_data                       : " + toString(_size_data) + "\n";
29      }
30
31    if (_nb_port < 1)
32      {
33        msg += "  - nb_port must be > 0\n";
34        msg += "    * nb_port                         : " + toString(_nb_port) + "\n";
35      }
36
37    return msg;
38
39    log_printf(FUNC,Counter,"msg_error","End");
40  };
41
42}; // end namespace counter
43}; // end namespace generic
44
45}; // end namespace behavioural
46}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.