LCOV - code coverage report
Current view: top level - snaplogger - format.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2021-10-14 20:12:47 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : // Copyright (c) 2013-2021  Made to Order Software Corp.  All Rights Reserved
       2             : //
       3             : // https://snapwebsites.org/project/snaplogger
       4             : // contact@m2osw.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 2 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 along
      17             : // with this program; if not, write to the Free Software Foundation, Inc.,
      18             : // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      19             : #pragma once
      20             : 
      21             : /** \file
      22             :  * \brief Format a message.
      23             :  *
      24             :  * This file declares the format class used to transform a message with
      25             :  * the administrator defined format.
      26             :  */
      27             : 
      28             : 
      29             : // self
      30             : //
      31             : #include    "snaplogger/variable.h"
      32             : 
      33             : 
      34             : 
      35             : namespace snaplogger
      36             : {
      37             : 
      38             : 
      39             : 
      40             : 
      41          53 : class format
      42             : {
      43             : public:
      44             :     typedef std::shared_ptr<format>     pointer_t;
      45             : 
      46             :                         format(std::string const & f);
      47             : 
      48             :     std::string         process_message(message const & msg, bool ignore_on_no_repeat = false);
      49             : 
      50             : private:
      51             :     variable::vector_t  f_variables = variable::vector_t();
      52             : };
      53             : 
      54             : 
      55             : 
      56             : 
      57             : 
      58             : } // snaplogger namespace
      59             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.13