.. _program_listing_file_include_mod_base.hpp: Program Listing for File base.hpp ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``include/mod/base.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright (c) Chittaranjan Srinivas Swaminathan * This file is part of mod. * * mod is free software: you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the License, * or (at your option) any later version. * * mod 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with mod. If not, see * . */ #pragma once #include namespace MoD { class Base { protected: std::string frame_id_; public: inline std::string getFrameID() const { return frame_id_; } inline void setFrameID(const std::string &frame_id) { this->frame_id_ = frame_id; } }; } // namespace MoD