text: // 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 HelloWorld.cpp
   * This source file contains the definition of the described types in the IDL file.
   *
   * This file was generated by the tool gen.
   */
  
  #ifdef _WIN32
  // Remove linker warning LNK4221 on Visual Studio
  namespace { char dummy; }
  #endif
  
  #include "HelloWorld.h"
  #include <fastcdr/Cdr.h>
  
  #include <fastcdr/exceptions/BadParamException.h>
  using namespace eprosima::fastcdr::exception;
  
  #include <utility>
  
  HelloWorld::HelloWorld()
  {
      // m_arr com.eprosima.idl.parser.typecode.ArrayTypeCode@44f75083
      memset(&m_arr, 0, (16000) * 8);
  
  }
  
  HelloWorld::~HelloWorld()
  {
  }
  
  HelloWorld::HelloWorld(const HelloWorld &x)
  {
      m_arr = x.m_arr;
  }
  
  HelloWorld::HelloWorld(HelloWorld &&x)
  {
      m_arr = std::move(x.m_arr);
  }
  
  HelloWorld& HelloWorld::operator=(const HelloWorld &x)
  {
  
      m_arr = x.m_arr;
  
      return *this;
  }
  
  HelloWorld& HelloWorld::operator=(HelloWorld &&x)
  {
  
      m_arr = std::move(x.m_arr);
  
      return *this;
  }
  
  size_t HelloWorld::getMaxCdrSerializedSize(size_t current_alignment)
  {
      size_t initial_alignment = current_alignment;
  
  
      current_alignment += ((16000) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
  
  
      return current_alignment - initial_alignment;
  }
  
  size_t HelloWorld::getCdrSerializedSize(const HelloWorld& data, size_t current_alignment)
  {
      (void)data;
      size_t initial_alignment = current_alignment;
  
  
      if ((16000) > 0)
      {
          current_alignment += ((16000) * 8) + eprosima::fastcdr::Cdr::alignment(current_alignment, 8);
      }
  
      return current_alignment - initial_alignment;
  }
  
  void HelloWorld::serialize(eprosima::fastcdr::Cdr &scdr) const
  {
  
      scdr << m_arr;
  
  }
  
  void HelloWorld::deserialize(eprosima::fastcdr::Cdr &dcdr)
  {
  
      dcdr >> m_arr;
  
  }
  
  /*!
   * @brief This function copies the value in member arr
   * @param _arr New value to be copied in member arr
   */
  void HelloWorld::arr(const std::array<double, 16000> &_arr)
  {
  m_arr = _arr;
  }
  
  /*!
   * @brief This function moves the value in member arr
   * @param _arr New value to be moved in member arr
   */
  void HelloWorld::arr(std::array<double, 16000> &&_arr)
  {
  m_arr = std::move(_arr);
  }
  
  /*!
   * @brief This function returns a constant reference to member arr
   * @return Constant reference to member arr
   */
  const std::array<double, 16000>& HelloWorld::arr() const
  {
      return m_arr;
  }
  
  /*!
   * @brief This function returns a reference to member arr
   * @return Reference to member arr
   */
  std::array<double, 16000>& HelloWorld::arr()
  {
      return m_arr;
  }
  
  size_t HelloWorld::getKeyMaxCdrSerializedSize(size_t current_alignment)
  {
      size_t current_align = current_alignment;
  
  
  
      return current_align;
  }
  
  bool HelloWorld::isKeyDefined()
  {
     return true;
  }
  
  void HelloWorld::serializeKey(eprosima::fastcdr::Cdr &scdr) const
  {
      (void) scdr;
       
  }
  