LCOV - code coverage report
Current view: top level - src/config - serializable.h (source / functions) Hit Total Coverage
Test: jami-coverage-filtered.info Lines: 1 1 100.0 %
Date: 2024-04-22 08:02:07 Functions: 1 2 50.0 %

          Line data    Source code
       1             : /*
       2             :  *  Copyright (C) 2004-2024 Savoir-faire Linux Inc.
       3             :  *
       4             :  *  Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
       5             :  *
       6             :  *  This program is free software; you can redistribute it and/or modify
       7             :  *  it under the terms of the GNU 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             :  *  This program 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 General Public License for more details.
      15             :  *
      16             :  *  You should have received a copy of the GNU General Public License
      17             :  *  along with this program; if not, write to the Free Software
      18             :  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
      19             :  */
      20             : #pragma once
      21             : 
      22             : namespace YAML {
      23             : class Emitter;
      24             : class Node;
      25             : } // namespace YAML
      26             : 
      27             : namespace jami {
      28             : 
      29             : class Serializable
      30             : {
      31             : public:
      32        1358 :     virtual ~Serializable() {};
      33             :     virtual void serialize(YAML::Emitter& out) const = 0;
      34             :     virtual void unserialize(const YAML::Node& node) = 0;
      35             : };
      36             : 
      37             : } // namespace jami

Generated by: LCOV version 1.14