Line data Source code
1 : /* 2 : Copyright 2021 Paul Colby 3 : 4 : This file is part of QtFit. 5 : 6 : QtFit is free software: you can redistribute it and/or modify 7 : it under the terms of the GNU Lesser General Public License as published by 8 : the Free Software Foundation, either version 3 of the License, or 9 : (at your option) any later version. 10 : 11 : QtFit is distributed in the hope that it will be useful, 12 : but WITHOUT ANY WARRANTY; without even the implied warranty of 13 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 : GNU Lesser General Public License for more details. 15 : 16 : You should have received a copy of the GNU Lesser General Public License 17 : along with QtFit. If not, see <http://www.gnu.org/licenses/>. 18 : */ 19 : 20 : #ifndef FITDATAMESSAGE_H 21 : #define FITDATAMESSAGE_H 22 : 23 : #include "QtFit_global.h" 24 : #include "types.h" 25 : 26 : QTFIT_BEGIN_NAMESPACE 27 : 28 : class FitDataMessagePrivate; 29 : 30 : class QTFIT_EXPORT FitDataMessage { 31 : 32 : public: 33 : FitDataMessage(); 34 : FitDataMessage(const FitDataMessage &other); 35 : FitDataMessage &operator=(const FitDataMessage &other); 36 : ~FitDataMessage(); 37 : MesgNum globalMessageNumber() const; 38 : bool isNull() const; 39 : // bool isValid() const; ///< @todo? 40 : 41 : protected: 42 : /// @cond internal 43 : FitDataMessagePrivate * const d_ptr; ///< Internal d-pointer. 44 : explicit FitDataMessage(FitDataMessagePrivate * const d); 45 : /// @endcond 46 : 47 : private: 48 0 : Q_DECLARE_PRIVATE(FitDataMessage) 49 : 50 : }; 51 : 52 : QTFIT_END_NAMESPACE 53 : 54 : #endif // FITDATAMESSAGE_H