Line data Source code
1 : /* Copyright (C) 2025 Robert Schiwon 2 : * 3 : * This file is part of libjdx. 4 : * 5 : * libjdx is free software: you can redistribute it and/or modify it under the 6 : * terms of the GNU Lesser General Public License as published by the Free 7 : * Software Foundation, either version 3 of the License, or (at your option) any 8 : * later version. 9 : * 10 : * libjdx is distributed in the hope that it will be useful, but WITHOUT ANY 11 : * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 12 : * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 13 : * details. 14 : * 15 : * You should have received a copy of the GNU Lesser General Public License 16 : * along with libjdx. If not, see <https://www.gnu.org/licenses/>. 17 : */ 18 : #include "jdx/StringLdr.hpp" 19 : 20 1989 : libjdx::jdx::StringLdr::StringLdr(std::string label, std::string value) 21 1989 : : Ldr{std::move(label)} 22 1989 : , m_value{std::move(value)} 23 : { 24 1989 : } 25 : 26 1384 : const std::string& libjdx::jdx::StringLdr::getValue() const 27 : { 28 1384 : return m_value; 29 : }