#ifndef CCommandSet_HPP_INCLUDED #define CCommandSet_HPP_INCLUDED /* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (c) 2018-2021 3Dconnexion. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ /** * @file CCommandSet.hpp * @brief SiActionNodeEx_t wrapper. */ #include #if !_MSC_VER #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #endif namespace TDx { namespace SpaceMouse { /// /// The helper class implements the node type. /// class CCommandSet : public CCommandTreeNode { typedef CCommandTreeNode base_type; public: CCommandSet() { } explicit CCommandSet(std::string id, std::string name) : base_type(std::move(id), std::move(name), SiActionNodeType_t::SI_ACTIONSET_NODE) { } #if defined(_MSC_VER) && _MSC_VER < 1900 CCommandSet(CCommandSet &&other) NOEXCEPT : base_type(std::forward(other)) { } CCommandSet &operator=(CCommandSet &&other) NOEXCEPT { base_type::operator=(std::forward(other)); return *this; } #else CCommandSet(CCommandSet &&) = default; CCommandSet &operator=(CCommandSet &&) = default; #endif }; } // namespace SpaceMouse } // namespace TDx #if !_MSC_VER #pragma GCC diagnostic pop #endif #endif // CCommandSet_HPP_INCLUDED