SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_utils_ids.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements. See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied. See the License for the specific language governing
16  permissions and limitations under the License.
17 
18  *****************************************************************************/
19 
20 /*****************************************************************************
21 
22  sc_utils_ids.h -- Report ids for the utils code.
23 */
33 #ifndef SC_UTILS_IDS_H
34 #define SC_UTILS_IDS_H
35 
42 #ifndef SC_DEFINE_MESSAGE
43 
44 #define SC_DEFINE_MESSAGE(id,unused1,unused2) \
45  namespace sc_core { extern SC_API const char id[]; }
46 namespace sc_core {
47  extern SC_API const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp
48 }
49 #endif
50 
51 SC_DEFINE_MESSAGE(SC_ID_STRING_TOO_LONG_,
52  801, "string is too long")
53 SC_DEFINE_MESSAGE(SC_ID_FRONT_ON_EMPTY_LIST_,
54  802, "attempt to take front() on an empty list")
55 SC_DEFINE_MESSAGE(SC_ID_BACK_ON_EMPTY_LIST_,
56  803, "attempt to take back() on an empty list")
57 SC_DEFINE_MESSAGE(SC_ID_IEEE_1666_DEPRECATION_,
58  804, "/IEEE_Std_1666/deprecated" )
59 SC_DEFINE_MESSAGE(SC_ID_VECTOR_INIT_CALLED_TWICE_,
60  805, "sc_vector::init has already been called" )
61 // available message number 806
62 SC_DEFINE_MESSAGE(SC_ID_VECTOR_BIND_EMPTY_,
63  807, "sc_vector::bind called with empty range" )
64 SC_DEFINE_MESSAGE(SC_ID_VECTOR_NONOBJECT_ELEMENTS_,
65  808, "sc_vector::get_elements called for element type "
66  "not derived from sc_object" )
67 
68 /*****************************************************************************
69 
70  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
71  changes you are making here.
72 
73  Name, Affiliation, Date:
74  Description of Modification:
75 
76  Alex Riesen, Synopsys, Inc., 2003-02-02
77  ported to SystemC 2.1 exception reporting.
78 
79  *****************************************************************************/
80 
81 // $Log: sc_utils_ids.h,v $
82 // Revision 1.5 2011/08/26 20:46:20 acg
83 // Andy Goodrich: moved the modification log to the end of the file to
84 // eliminate source line number skew when check-ins are done.
85 //
86 // Revision 1.4 2011/02/18 20:38:44 acg
87 // Andy Goodrich: Updated Copyright notice.
88 //
89 // Revision 1.3 2011/02/14 17:54:25 acg
90 // Andy Goodrich: Philipp's addition of early bind checks.
91 //
92 // Revision 1.2 2010/12/07 20:10:19 acg
93 // Andy Goodrich: messages for new sc_vector class.
94 //
95 // Revision 1.1.1.1 2006/12/15 20:20:06 acg
96 // SystemC 2.3
97 //
98 // Revision 1.6 2006/01/25 00:31:27 acg
99 // Andy Goodrich: Changed over to use a standard message id of
100 // SC_ID_IEEE_1666_DEPRECATION for all deprecation messages.
101 //
102 // Revision 1.5 2006/01/24 22:01:35 acg
103 // Andy Goodrich: consolidated all IEEE 1666 compliance messages to use the
104 // SC_ID_IEEE_1666_DEPRECATION_ message type.
105 //
106 // Revision 1.4 2006/01/24 20:53:41 acg
107 // Andy Goodrich: added warnings indicating that use of integer ids in reports
108 // is deprecated. Added tracing/sc_trace_ids.h to message list.
109 //
110 // Revision 1.3 2006/01/13 18:53:11 acg
111 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in
112 // the source.
113 //
114 
115 #endif
116 
117 // Taf!
#define SC_DEFINE_MESSAGE(id, unused1, unused2)
Definition: sc_utils_ids.h:44
SC_API const char SC_ID_REGISTER_ID_FAILED_[]
Definition: sc_bit_ids.h:77
#define SC_API
Definition: sc_cmnhdr.h:168