LCOV - code coverage report
Current view: top level - wlogjson - hide_flags_json.hpp (source / functions) Hit Total Coverage
Test: wlog-coverage.info Lines: 1 15 6.7 %
Date: 2019-09-12 Functions: 1 15 6.7 %

          Line data    Source code
       1             : //
       2             : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2017
       3             : //
       4             : // Copyright: See COPYING file that comes with this distribution
       5             : //
       6             : #pragma once
       7             : 
       8             : #include <wlog/formatter/hide_flags.hpp>
       9             : #include <wjson/json.hpp>
      10             : #include <wjson/name.hpp>
      11             : 
      12             : namespace wlog{
      13             :   
      14             : struct hide_flags_json
      15             : {
      16          12 :   JSON_NAME(none)
      17           0 :   JSON_NAME(date)
      18           0 :   JSON_NAME(time)
      19           0 :   JSON_NAME(year)
      20           0 :   JSON_NAME(month)
      21           0 :   JSON_NAME(weekday)
      22           0 :   JSON_NAME(days)
      23           0 :   JSON_NAME(hours)
      24           0 :   JSON_NAME(minutes)
      25           0 :   JSON_NAME(seconds)
      26           0 :   JSON_NAME(fraction)
      27           0 :   JSON_NAME(name)
      28           0 :   JSON_NAME(ident)
      29           0 :   JSON_NAME(message)
      30           0 :   JSON_NAME(inherited)
      31             : 
      32             :   typedef wjson::flags<
      33             :     hide_flags,
      34             :     wjson::member_list<
      35             :       wjson::enum_value<n_none,    hide_flags, hide_flags::none>,
      36             :       wjson::enum_value<n_date,    hide_flags, hide_flags::date>,
      37             :       wjson::enum_value<n_time,    hide_flags, hide_flags::time>,
      38             :       wjson::enum_value<n_year,    hide_flags, hide_flags::year>,
      39             :       wjson::enum_value<n_month,   hide_flags, hide_flags::month>,
      40             :       wjson::enum_value<n_weekday, hide_flags, hide_flags::weekday>,
      41             :       wjson::enum_value<n_days,    hide_flags, hide_flags::days>,
      42             :       wjson::enum_value<n_hours,   hide_flags, hide_flags::hours>,
      43             :       wjson::enum_value<n_minutes, hide_flags, hide_flags::minutes>,
      44             :       wjson::enum_value<n_seconds, hide_flags, hide_flags::seconds>,
      45             :       wjson::enum_value<n_fraction,hide_flags, hide_flags::fraction>,
      46             :       wjson::enum_value<n_name,    hide_flags, hide_flags::name>,
      47             :       wjson::enum_value<n_ident,   hide_flags, hide_flags::ident>,
      48             :       wjson::enum_value<n_message, hide_flags, hide_flags::message>,
      49             :       wjson::enum_value<n_inherited, hide_flags, hide_flags::inherited>
      50             :     >,
      51             :     '|'
      52             :   > type;
      53             :   typedef type::serializer serializer;
      54             :   typedef type::target target;
      55             :   typedef type::member_list member_list;
      56             : 
      57             : };
      58             : 
      59             : }

Generated by: LCOV version 1.10