// generated from rosidl_generator_cpp/resource/idl__struct.hpp.em
// with input from interface_protocol:msg/LedControl.idl
// generated code does not contain a copyright notice

#ifndef INTERFACE_PROTOCOL__MSG__DETAIL__LED_CONTROL__STRUCT_HPP_
#define INTERFACE_PROTOCOL__MSG__DETAIL__LED_CONTROL__STRUCT_HPP_

#include <algorithm>
#include <array>
#include <memory>
#include <string>
#include <vector>

#include "rosidl_runtime_cpp/bounded_vector.hpp"
#include "rosidl_runtime_cpp/message_initialization.hpp"


#ifndef _WIN32
# define DEPRECATED__interface_protocol__msg__LedControl __attribute__((deprecated))
#else
# define DEPRECATED__interface_protocol__msg__LedControl __declspec(deprecated)
#endif

namespace interface_protocol
{

namespace msg
{

// message struct
template<class ContainerAllocator>
struct LedControl_
{
  using Type = LedControl_<ContainerAllocator>;

  explicit LedControl_(rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->color = 0;
    }
  }

  explicit LedControl_(const ContainerAllocator & _alloc, rosidl_runtime_cpp::MessageInitialization _init = rosidl_runtime_cpp::MessageInitialization::ALL)
  {
    (void)_alloc;
    if (rosidl_runtime_cpp::MessageInitialization::ALL == _init ||
      rosidl_runtime_cpp::MessageInitialization::ZERO == _init)
    {
      this->color = 0;
    }
  }

  // field types and members
  using _color_type =
    uint8_t;
  _color_type color;

  // setters for named parameter idiom
  Type & set__color(
    const uint8_t & _arg)
  {
    this->color = _arg;
    return *this;
  }

  // constant declarations
  static constexpr uint8_t BLINK_RED =
    1u;
  static constexpr uint8_t BLINK_GREEN =
    2u;
  static constexpr uint8_t BLINK_BLUE =
    3u;
  static constexpr uint8_t BLINK_WHITE =
    4u;
  static constexpr uint8_t CONSTANT_ON_WHITE =
    5u;
  static constexpr uint8_t CONSTANT_ON_GREEN =
    6u;
  static constexpr uint8_t BREATHE_WHITE =
    7u;
  static constexpr uint8_t WATER_WHITE =
    8u;
  static constexpr uint8_t BREATHE_RED =
    9u;
  static constexpr uint8_t BLINK_ORANGE =
    10u;
  static constexpr uint8_t CONSTANT_ON_ORANGE =
    11u;

  // pointer types
  using RawPtr =
    interface_protocol::msg::LedControl_<ContainerAllocator> *;
  using ConstRawPtr =
    const interface_protocol::msg::LedControl_<ContainerAllocator> *;
  using SharedPtr =
    std::shared_ptr<interface_protocol::msg::LedControl_<ContainerAllocator>>;
  using ConstSharedPtr =
    std::shared_ptr<interface_protocol::msg::LedControl_<ContainerAllocator> const>;

  template<typename Deleter = std::default_delete<
      interface_protocol::msg::LedControl_<ContainerAllocator>>>
  using UniquePtrWithDeleter =
    std::unique_ptr<interface_protocol::msg::LedControl_<ContainerAllocator>, Deleter>;

  using UniquePtr = UniquePtrWithDeleter<>;

  template<typename Deleter = std::default_delete<
      interface_protocol::msg::LedControl_<ContainerAllocator>>>
  using ConstUniquePtrWithDeleter =
    std::unique_ptr<interface_protocol::msg::LedControl_<ContainerAllocator> const, Deleter>;
  using ConstUniquePtr = ConstUniquePtrWithDeleter<>;

  using WeakPtr =
    std::weak_ptr<interface_protocol::msg::LedControl_<ContainerAllocator>>;
  using ConstWeakPtr =
    std::weak_ptr<interface_protocol::msg::LedControl_<ContainerAllocator> const>;

  // pointer types similar to ROS 1, use SharedPtr / ConstSharedPtr instead
  // NOTE: Can't use 'using' here because GNU C++ can't parse attributes properly
  typedef DEPRECATED__interface_protocol__msg__LedControl
    std::shared_ptr<interface_protocol::msg::LedControl_<ContainerAllocator>>
    Ptr;
  typedef DEPRECATED__interface_protocol__msg__LedControl
    std::shared_ptr<interface_protocol::msg::LedControl_<ContainerAllocator> const>
    ConstPtr;

  // comparison operators
  bool operator==(const LedControl_ & other) const
  {
    if (this->color != other.color) {
      return false;
    }
    return true;
  }
  bool operator!=(const LedControl_ & other) const
  {
    return !this->operator==(other);
  }
};  // struct LedControl_

// alias to use template instance with default allocator
using LedControl =
  interface_protocol::msg::LedControl_<std::allocator<void>>;

// constant definitions
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BLINK_RED;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BLINK_GREEN;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BLINK_BLUE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BLINK_WHITE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::CONSTANT_ON_WHITE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::CONSTANT_ON_GREEN;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BREATHE_WHITE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::WATER_WHITE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BREATHE_RED;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::BLINK_ORANGE;
#endif  // __cplusplus < 201703L
#if __cplusplus < 201703L
// static constexpr member variable definitions are only needed in C++14 and below, deprecated in C++17
template<typename ContainerAllocator>
constexpr uint8_t LedControl_<ContainerAllocator>::CONSTANT_ON_ORANGE;
#endif  // __cplusplus < 201703L

}  // namespace msg

}  // namespace interface_protocol

#endif  // INTERFACE_PROTOCOL__MSG__DETAIL__LED_CONTROL__STRUCT_HPP_
