LCOV - code coverage report
Current view: top level - package/prefixdb/api - compact_prefix_json.hpp (source / functions) Hit Total Coverage
Test: wfc_prefixdb-coverage.info Lines: 0 5 0.0 %
Date: 2019-06-26 Functions: 0 5 0.0 %

          Line data    Source code
       1             : #pragma once
       2             : 
       3             : #include <prefixdb/api/compact_prefix.hpp>
       4             : #include <prefixdb/api/common_status_json.hpp>
       5             : #include <wfc/json.hpp>
       6             : 
       7             : namespace wamba { namespace prefixdb {
       8             : 
       9             : namespace request 
      10             : {
      11             :   struct compact_prefix_json
      12             :   {
      13           0 :     JSON_NAME(prefix)
      14           0 :     JSON_NAME(from)
      15           0 :     JSON_NAME(to)
      16             :     
      17             :     typedef wfc::json::object<
      18             :       compact_prefix,
      19             :         wfc::json::member_list<
      20             :           wfc::json::member<n_prefix, compact_prefix, std::string, &compact_prefix::prefix >,
      21             :           wfc::json::member<n_from, compact_prefix, std::string, &compact_prefix::from>,
      22             :           wfc::json::member<n_to, compact_prefix, std::string, &compact_prefix::to>
      23             :         >
      24             :     > type;
      25             :     typedef type::target target;
      26             :     typedef type::serializer serializer;
      27             :     typedef type::member_list member_list;
      28             :   };
      29             : }
      30             : 
      31             : namespace response
      32             : {
      33             :   struct compact_prefix_json
      34             :   {
      35           0 :     JSON_NAME(status)
      36           0 :     JSON_NAME(prefix)
      37             : 
      38             :     typedef wfc::json::object<
      39             :       compact_prefix,
      40             :       wfc::json::member_list<
      41             :         wfc::json::member<n_prefix, compact_prefix, std::string, &compact_prefix::prefix>,
      42             :         wfc::json::member<n_status, compact_prefix, common_status, &compact_prefix::status, common_status_json>
      43             :       >
      44             :     > type;
      45             :     typedef type::target target;
      46             :     typedef type::serializer serializer;
      47             :     typedef type::member_list member_list;
      48             :   };
      49             : }
      50             : 
      51             : }}

Generated by: LCOV version 1.10