LCOV - code coverage report
Current view: top level - irohad/model/commands - create_domain.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 1 1 100.0 %
Date: 2019-03-07 14:46:43 Functions: 10 11 90.9 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : #ifndef IROHA_CREATE_DOMAIN_HPP
       6             : #define IROHA_CREATE_DOMAIN_HPP
       7             : 
       8             : #include "model/command.hpp"
       9             : 
      10             : namespace iroha {
      11             :   namespace model {
      12             : 
      13             :     /**
      14             :      * Create new asset in the system
      15             :      */
      16             :     struct CreateDomain : public Command {
      17             :       /**
      18             :        * Asset to insert to the system
      19             :        */
      20             :       std::string domain_id;
      21             : 
      22             :       /**
      23             :        * Default role for users in the domain
      24             :        */
      25             :       std::string user_default_role;
      26             : 
      27             :       bool operator==(const Command &command) const override;
      28             : 
      29             :       CreateDomain() {}
      30             : 
      31             :       /**
      32             :        * @param domain_id - id of the domain to create
      33             :        * @param user_default_role - default role of the user in this domain
      34             :        */
      35             :       CreateDomain(const std::string &domain_id,
      36             :                    const std::string &user_default_role)
      37           2 :           : domain_id(domain_id), user_default_role(user_default_role) {}
      38             :     };
      39             :   }  // namespace model
      40             : }  // namespace iroha
      41             : #endif  // IROHA_CREATE_DOMAIN_HPP

Generated by: LCOV version 1.13