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: 2019-12-13 00:59:36 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013-2019  Made to Order Software Corp.  All Rights Reserved
       3             :  *
       4             :  * https://snapwebsites.org/project/snaplogger
       5             :  * contact@m2osw.com
       6             :  *
       7             :  * This program is free software; you can redistribute it and/or modify
       8             :  * it under the terms of the GNU General Public License as published by
       9             :  * the Free Software Foundation; either version 2 of the License, or
      10             :  * (at your option) any later version.
      11             :  *
      12             :  * This program is distributed in the hope that it will be useful,
      13             :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14             :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      15             :  * GNU General Public License for more details.
      16             :  *
      17             :  * You should have received a copy of the GNU General Public License along
      18             :  * with this program; if not, write to the Free Software Foundation, Inc.,
      19             :  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      20             :  */
      21             : #pragma once
      22             : 
      23             : /** \file
      24             :  * \brief Format a message.
      25             :  *
      26             :  * This file declares the format class used to transform a message with
      27             :  * the administrator defined format.
      28             :  */
      29             : 
      30             : 
      31             : // self
      32             : //
      33             : #include    "snaplogger/variable.h"
      34             : 
      35             : 
      36             : 
      37             : namespace snaplogger
      38             : {
      39             : 
      40             : 
      41             : 
      42             : 
      43          51 : class format
      44             : {
      45             : public:
      46             :     typedef std::shared_ptr<format>     pointer_t;
      47             : 
      48             :                         format(std::string const & f);
      49             : 
      50             :     std::string         process_message(message const & msg);
      51             : 
      52             : private:
      53             :     variable::vector_t  f_variables = variable::vector_t();
      54             : };
      55             : 
      56             : 
      57             : 
      58             : 
      59             : 
      60             : } // snaplogger namespace
      61             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.13