#ifdef _WIN32
namespace {
char dummy;
} #endif
#include "Shape.h"
#include <fastcdr/Cdr.h>
#include <fastcdr/exceptions/BadParamException.h>
using namespace eprosima::fastcdr::exception;
#include <utility>
ShapeType::ShapeType()
{
}
ShapeType::~ShapeType()
{
}
ShapeType::ShapeType(
const ShapeType& x)
{
m_color = x.m_color;
m_x = x.m_x;
m_y = x.m_y;
m_shape_size = x.m_shape_size;
}
ShapeType::ShapeType(
ShapeType&& x) noexcept
{
m_color = std::move(x.m_color);
m_x = x.m_x;
m_y = x.m_y;
m_shape_size = x.m_shape_size;
}
ShapeType& ShapeType::operator =(
const ShapeType& x)
{
m_color = x.m_color;
m_x = x.m_x;
m_y = x.m_y;
m_shape_size = x.m_shape_size;
return *this;
}
ShapeType& ShapeType::operator =(
ShapeType&& x) noexcept
{
m_color = std::move(x.m_color);
m_x = x.m_x;
m_y = x.m_y;
m_shape_size = x.m_shape_size;
return *this;
}
bool ShapeType::operator ==(
const ShapeType& x) const
{
return (m_color == x.m_color &&
m_x == x.m_x &&
m_y == x.m_y &&
m_shape_size == x.m_shape_size);
}
bool ShapeType::operator !=(
const ShapeType& x) const
{
return !(*this == x);
}
void ShapeType::color(
const std::string& _color)
{
m_color = _color;
}
void ShapeType::color(
std::string&& _color)
{
m_color = std::move(_color);
}
const std::string& ShapeType::color() const
{
return m_color;
}
std::string& ShapeType::color()
{
return m_color;
}
void ShapeType::x(
int32_t _x)
{
m_x = _x;
}
int32_t ShapeType::x() const
{
return m_x;
}
int32_t& ShapeType::x()
{
return m_x;
}
void ShapeType::y(
int32_t _y)
{
m_y = _y;
}
int32_t ShapeType::y() const
{
return m_y;
}
int32_t& ShapeType::y()
{
return m_y;
}
void ShapeType::shape_size(
int32_t _shape_size)
{
m_shape_size = _shape_size;
}
int32_t ShapeType::shape_size() const
{
return m_shape_size;
}
int32_t& ShapeType::shape_size()
{
return m_shape_size;
}
#include "ShapeCdrAux.ipp"