2 /******************************************************************************
4 * Copyright (c) 2019 AT&T Intellectual Property.
5 * Copyright (c) 2018-2019 Nokia.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
19 ******************************************************************************/
21 // Standard Includes: ANSI C/C++, MSA, and Third-Party Libraries
24 // Local Includes: Application specific classes, functions, and libraries
25 #include "asn/asn.hpp"
26 #include "asn/buffer.hpp"
27 #include "asn/ber/context.hpp"
28 #include "asn/ber/tools.hpp"
30 //#define ASN_DECODER_TRACE_ENABLE
31 //#define ASN_ENCODER_TRACE_ENABLE
33 #ifdef ASN_DECODER_TRACE_ENABLE
34 #define ASN_DECODER_TRACE(FMT, ...) printf(FMT "\n", __VA_ARGS__)
36 #define ASN_DECODER_TRACE(...)
39 #ifdef ASN_ENCODER_TRACE_ENABLE
40 #define ASN_ENCODER_TRACE(FMT, ...) printf(FMT "\n", __VA_ARGS__)
42 #define ASN_ENCODER_TRACE(...)
48 template <class IE> struct Element;