LCOV - code coverage report
Current view: top level - irohad/model - query.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 4 4 100.0 %
Date: 2019-03-07 14:46:43 Functions: 3 5 60.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_QUERY_HPP
       7             : #define IROHA_QUERY_HPP
       8             : 
       9             : #include <string>
      10             : 
      11             : #include "datetime/time.hpp"
      12             : #include "model/signature.hpp"
      13             : 
      14             : namespace iroha {
      15             :   namespace model {
      16             :     /**
      17             :      * This model represents user intent for reading ledger.
      18             :      * Concrete queries should extend this interface.
      19             :      */
      20             :     struct Query {
      21             :       /**
      22             :        * Signature of query's creator
      23             :        */
      24          52 :       Signature signature{};
      25             : 
      26             :       /**
      27             :        * Account id of transaction creator.
      28             :        *
      29             :        */
      30          52 :       std::string creator_account_id{};
      31             : 
      32             :       /**
      33             :        * Creation timestamp
      34             :        *
      35             :        */
      36          52 :       ts64_t created_ts{};
      37             : 
      38             :       /**
      39             :        * Query counter
      40             :        */
      41          52 :       uint64_t query_counter{};
      42             : 
      43             :       virtual ~Query() {}
      44             :     };
      45             :   }  // namespace model
      46             : }  // namespace iroha
      47             : #endif  // IROHA_QUERY_HPP

Generated by: LCOV version 1.13