Enhanced SIM for E2AP v1 for TS UC
[sim/e2-interface.git] / e2sim / e2apv1sim / src / ASN1 / asn / per / common.hpp
1 #pragma once
2 /******************************************************************************
3 *
4 *   Copyright (c) 2019 AT&T Intellectual Property.
5 *   Copyright (c) 2018-2019 Nokia.
6 *
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
10 *
11 *       http://www.apache.org/licenses/LICENSE-2.0
12 *
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.
18 *
19 ******************************************************************************/
20
21 // Standard Includes: ANSI C/C++, MSA, and Third-Party Libraries
22 #include <cstdio>
23
24 // Local Includes: Application specific classes, functions, and libraries
25 #include "asn/asn.hpp"
26 #include "type_defs.h"
27
28 #include "asn/buffer.hpp"
29 #include "context.hpp"
30
31 //#define ASN_DECODER_TRACE_ENABLE
32 //#define ASN_ENCODER_TRACE_ENABLE
33
34 #ifdef ASN_DECODER_TRACE_ENABLE
35 #define ASN_DECODER_TRACE(FMT, ...) printf(FMT "\n", __VA_ARGS__)
36 #else
37 #define ASN_DECODER_TRACE(...)
38 #endif
39
40 #ifdef ASN_ENCODER_TRACE_ENABLE
41 #define ASN_ENCODER_TRACE(FMT, ...) printf(FMT "\n", __VA_ARGS__)
42 #else
43 #define ASN_ENCODER_TRACE(...)
44 #endif
45
46 namespace asn {
47 namespace per {
48
49 struct Tools
50 {
51         typedef bit_accessor_cross_byte<false> bit_accessor;
52 };
53
54 template <class IE, element_type IE_TYPE>
55 struct Element;
56
57 } //namespace per
58 } //namespace asn