LCOV - code coverage report
Current view: top level - package/pingpong/tank - tank_config_json.hpp (source / functions) Hit Total Coverage
Test: wfc_demo-coverage.info Lines: 0 3 0.0 %
Date: 2019-08-13 Functions: 0 3 0.0 %

          Line data    Source code
       1             : //
       2             : // Author: Vladimir Migashko <migashko@gmail.com>, (C) 2016
       3             : //
       4             : // Copyright: See COPYING file that comes with this distribution
       5             : //
       6             : #pragma once
       7             : 
       8             : #include "tank_config.hpp"
       9             : #include <wfc/json.hpp>
      10             : 
      11             : namespace demo{ namespace pingpong{
      12             : 
      13             : struct tank_config_json
      14             : {
      15           0 :   JSON_NAME(discharge)
      16           0 :   JSON_NAME(target)
      17           0 :   JSON_NAME(power)
      18             :   
      19             :   typedef ::wfc::json::object<
      20             :     tank_config,
      21             :     wfc::json::member_list<
      22             :       wfc::json::member< n_power, tank_config, size_t, &tank_config::power>,
      23             :       wfc::json::member< n_discharge, tank_config, long, &tank_config::discharge>,
      24             :       wfc::json::member< n_target, tank_config, std::string, &tank_config::target>
      25             :     >
      26             :   > type;
      27             : 
      28             :   typedef type::serializer serializer;
      29             :   typedef type::target target;
      30             :   typedef type::member_list member_list;
      31             : };
      32             : 
      33             : }}

Generated by: LCOV version 1.10