// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

/*!
 * @file unionsCdrAux.hpp
 * This source file contains some definitions of CDR related functions.
 *
 * This file was generated by the tool fastddsgen (version: 4.1.0).
 */

#ifndef FAST_DDS_GENERATED__UNIONSCDRAUX_HPP
#define FAST_DDS_GENERATED__UNIONSCDRAUX_HPP

#include "unions.hpp"
constexpr uint32_t UnionMap_max_cdr_typesize {16UL};
constexpr uint32_t UnionMap_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDiscriminatorEnumLabel_max_cdr_typesize {14UL};
constexpr uint32_t UnionDiscriminatorEnumLabel_max_key_cdr_typesize {0UL};










constexpr uint32_t UnionLongDouble_max_cdr_typesize {32UL};
constexpr uint32_t UnionLongDouble_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionDiscriminatorULong_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorULong_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDouble_max_cdr_typesize {24UL};
constexpr uint32_t UnionDouble_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionDiscriminatorShort_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorShort_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionDiscriminatorEnum_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorEnum_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionChar_max_cdr_typesize {13UL};
constexpr uint32_t UnionChar_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionDiscriminatorUShort_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorUShort_max_key_cdr_typesize {0UL};













constexpr uint32_t UnionLong_max_cdr_typesize {16UL};
constexpr uint32_t UnionLong_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDiscriminatorAlias_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorAlias_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionFloat_max_cdr_typesize {16UL};
constexpr uint32_t UnionFloat_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionOctet_max_cdr_typesize {13UL};
constexpr uint32_t UnionOctet_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionInnerAliasHelper_max_cdr_typesize {16UL};
constexpr uint32_t UnionInnerAliasHelper_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionFixedStringAlias_max_cdr_typesize {37UL};
constexpr uint32_t UnionFixedStringAlias_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionWChar_max_cdr_typesize {14UL};
constexpr uint32_t UnionWChar_max_key_cdr_typesize {0UL};




constexpr uint32_t UnionUShort_max_cdr_typesize {14UL};
constexpr uint32_t UnionUShort_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionShort_max_cdr_typesize {14UL};
constexpr uint32_t UnionShort_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionInnerBitsetHelper_max_cdr_typesize {24UL};
constexpr uint32_t UnionInnerBitsetHelper_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDiscriminatorLongLong_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorLongLong_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionDiscriminatorBoolean_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorBoolean_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionSeveralFieldsWithDefault_max_cdr_typesize {76UL};
constexpr uint32_t UnionSeveralFieldsWithDefault_max_key_cdr_typesize {0UL};




constexpr uint32_t UnionDiscriminatorOctet_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorOctet_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionBoolean_max_cdr_typesize {13UL};
constexpr uint32_t UnionBoolean_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionSeveralFields_max_cdr_typesize {27UL};
constexpr uint32_t UnionSeveralFields_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionArray_max_cdr_typesize {16UL};
constexpr uint32_t UnionArray_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionBoundedWString_max_cdr_typesize {36UL};
constexpr uint32_t UnionBoundedWString_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionULong_max_cdr_typesize {16UL};
constexpr uint32_t UnionULong_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionInnerEnumHelper_max_cdr_typesize {16UL};
constexpr uint32_t UnionInnerEnumHelper_max_key_cdr_typesize {0UL};




constexpr uint32_t UnionInnerStructureHelper_max_cdr_typesize {24UL};
constexpr uint32_t UnionInnerStructureHelper_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDiscriminatorLong_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorLong_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionSequence_max_cdr_typesize {16UL};
constexpr uint32_t UnionSequence_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionDiscriminatorChar_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorChar_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionULongLong_max_cdr_typesize {24UL};
constexpr uint32_t UnionULongLong_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionBoundedString_max_cdr_typesize {27UL};
constexpr uint32_t UnionBoundedString_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionDiscriminatorWChar_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorWChar_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionInnerUnionHelper_max_cdr_typesize {24UL};
constexpr uint32_t UnionInnerUnionHelper_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionShortExtraMember_max_cdr_typesize {20UL};
constexpr uint32_t UnionShortExtraMember_max_key_cdr_typesize {0UL};



constexpr uint32_t UnionDiscriminatorULongLong_max_cdr_typesize {24UL};
constexpr uint32_t UnionDiscriminatorULongLong_max_key_cdr_typesize {0UL};


constexpr uint32_t UnionInnerBitMaskHelper_max_cdr_typesize {16UL};
constexpr uint32_t UnionInnerBitMaskHelper_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionLongLong_max_cdr_typesize {24UL};
constexpr uint32_t UnionLongLong_max_key_cdr_typesize {0UL};





constexpr uint32_t UnionString_max_cdr_typesize {272UL};
constexpr uint32_t UnionString_max_key_cdr_typesize {0UL};

constexpr uint32_t UnionWString_max_cdr_typesize {526UL};
constexpr uint32_t UnionWString_max_key_cdr_typesize {0UL};




namespace eprosima {
namespace fastcdr {

class Cdr;
class CdrSizeCalculator;

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionShort& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionUShort& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionULong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionLongLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionULongLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionFloat& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDouble& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionLongDouble& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionBoolean& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionOctet& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionChar& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionWChar& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionString& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionWString& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionBoundedString& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionBoundedWString& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerEnumHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerBitMaskHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerAliasHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionArray& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionSequence& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionMap& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerUnionHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerStructureHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionInnerBitsetHelper& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorShort& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorUShort& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorULong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorLongLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorULongLong& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorBoolean& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorOctet& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorChar& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorWChar& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorEnum& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorEnumLabel& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionDiscriminatorAlias& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionSeveralFields& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionSeveralFieldsWithDefault& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionShortExtraMember& data);

eProsima_user_DllExport void serialize_key(
        eprosima::fastcdr::Cdr& scdr,
        const UnionFixedStringAlias& data);


} // namespace fastcdr
} // namespace eprosima

#endif // FAST_DDS_GENERATED__UNIONSCDRAUX_HPP

