sc_report_handler.cc revision 12902:1db5abf06c24
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright
9 * notice, this list of conditions and the following disclaimer in the
10 * documentation and/or other materials provided with the distribution;
11 * neither the name of the copyright holders nor the names of its
12 * contributors may be used to endorse or promote products derived from
13 * this software without specific prior written permission.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/ext/utils/sc_report_handler.hh"
32
33namespace sc_core
34{
35
36void
37sc_report_handler::report(sc_severity, const char *msg_type, const char *msg,
38                          const char *file, int line)
39{
40    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
41}
42
43void
44sc_report_handler::report(sc_severity, const char *msg_type, const char *msg,
45                          int verbosity, const char *file, int line)
46{
47    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
48}
49
50void
51sc_report_handler::report(sc_severity, int id, const char *msg,
52                          const char *file, int line)
53{
54    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
55}
56
57sc_actions
58sc_report_handler::set_actions(sc_severity, sc_actions)
59{
60    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
61    return SC_UNSPECIFIED;
62}
63
64sc_actions
65sc_report_handler::set_actions(const char *msg_type, sc_actions)
66{
67    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
68    return SC_UNSPECIFIED;
69}
70
71sc_actions
72sc_report_handler::set_actions(const char *msg_type, sc_severity, sc_actions)
73{
74    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
75    return SC_UNSPECIFIED;
76}
77
78int
79sc_report_handler::stop_after(sc_severity, int limit)
80{
81    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
82    return 0;
83}
84
85int
86sc_report_handler::stop_after(const char *msg_type, int limit)
87{
88    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
89    return 0;
90}
91
92int
93sc_report_handler::stop_after(const char *msg_type, sc_severity, sc_actions)
94{
95    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
96    return 0;
97}
98
99int
100sc_report_handler::get_count(sc_severity)
101{
102    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
103    return 0;
104}
105
106int
107sc_report_handler::get_count(const char *msg_type)
108{
109    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
110    return 0;
111}
112
113int
114sc_report_handler::get_count(const char *msg_type, sc_severity)
115{
116    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
117    return 0;
118}
119
120int
121sc_report_handler::set_verbosity_level(int)
122{
123    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
124    return 0;
125}
126
127int
128sc_report_handler::get_verbosity_level()
129{
130    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
131    return 0;
132}
133
134
135sc_actions
136sc_report_handler::suppress(sc_actions)
137{
138    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
139    return SC_UNSPECIFIED;
140}
141
142sc_actions
143sc_report_handler::suppress()
144{
145    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
146    return SC_UNSPECIFIED;
147}
148
149sc_actions
150sc_report_handler::force(sc_actions)
151{
152    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
153    return SC_UNSPECIFIED;
154}
155
156sc_actions
157sc_report_handler::force()
158{
159    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
160    return SC_UNSPECIFIED;
161}
162
163
164void
165sc_report_handler::set_handler(sc_report_handler_proc)
166{
167    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
168}
169
170void
171sc_report_handler::default_handler(const sc_report &, const sc_actions &)
172{
173    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
174}
175
176sc_actions
177sc_report_handler::get_new_action_id()
178{
179    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
180    return SC_UNSPECIFIED;
181}
182
183sc_report *
184sc_report_handler::get_cached_report()
185{
186    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
187    return nullptr;
188}
189
190void
191sc_report_handler::clear_cached_report()
192{
193    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
194}
195
196bool
197sc_report_handler::set_log_file_name(const char *)
198{
199    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
200    return false;
201}
202
203const char *
204sc_report_handler::get_log_file_name()
205{
206    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
207    return nullptr;
208}
209
210void
211sc_interrupt_here(const char *msg_type, sc_severity)
212{
213    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
214}
215
216void
217sc_stop_here(const char *msg_type, sc_severity)
218{
219    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
220}
221
222} // namespace sc_core
223