Skip to content

Commit

Permalink
Removes combined model.hpp file
Browse files Browse the repository at this point in the history
Removes includes with relative paths
  • Loading branch information
lebdron committed Jul 12, 2017
1 parent a8d5402 commit 7a4e028
Show file tree
Hide file tree
Showing 47 changed files with 52 additions and 369 deletions.
2 changes: 1 addition & 1 deletion irohad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ add_subdirectory(peer_service)
add_subdirectory(validation)
add_subdirectory(torii)
add_subdirectory(network)
#add_subdirectory(model)
add_subdirectory(model)
5 changes: 3 additions & 2 deletions irohad/ametsuchi/block_query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#ifndef IROHA_BLOCK_QUERY_HPP
#define IROHA_BLOCK_QUERY_HPP

#include <model/model.hpp>
#include <model/transaction.hpp>
#include <model/block.hpp>
#include <rxcpp/rx-observable.hpp>

namespace iroha {
Expand Down Expand Up @@ -59,7 +60,7 @@ namespace iroha {
* @param to - ending id
* @return observable of Model Block
*/
virtual rxcpp::observable<iroha::model::Block> get_blocks_in_range(
virtual rxcpp::observable<model::Block> get_blocks_in_range(
uint32_t from, uint32_t to) = 0;
};

Expand Down
2 changes: 1 addition & 1 deletion irohad/ametsuchi/index/index_mediator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

#include "index_mediator.hpp"
#include <ametsuchi/index/index_mediator.hpp>
#include <block.pb.h>

namespace iroha {
Expand Down
5 changes: 4 additions & 1 deletion irohad/ametsuchi/wsv_query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
#define IROHA_WSV_QUERY_HPP

#include <common/types.hpp>
#include <model/model.hpp>
#include <model/account.hpp>
#include <model/asset.hpp>
#include <model/wallet.hpp>
#include <model/peer.hpp>
#include <string>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion irohad/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#ifndef __RANDOM_HPP_
#define __RANDOM_HPP_

#include "config.hpp"
#include <common/config.hpp>

#include <random>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion irohad/consensus/connection/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ limitations under the License.

#include <grpc++/grpc++.h>
#include <block.pb.h>
#include "client.hpp"
#include <consensus/connection/client.hpp>

namespace consensus {
namespace connection {
Expand Down
2 changes: 1 addition & 1 deletion irohad/consensus/connection/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include "service.hpp"
#include <consensus/connection/service.hpp>
#include <block.pb.h>
#include <endpoint.pb.h>

Expand Down
2 changes: 1 addition & 1 deletion irohad/consensus/consensus_service_stub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <ametsuchi/storage.hpp>
#include <consensus/consensus_service.hpp>
#include <validation/chain/validator.hpp>
#include <validation/stateful/validator.hpp>
#include <validation/stateful_validator.hpp>

namespace iroha {
namespace consensus {
Expand Down
8 changes: 4 additions & 4 deletions irohad/consensus/sumeragi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

#include <crypto/crypto.hpp>
#include <validation/stateful/validator.hpp>
#include <validation/stateful_validator.hpp>
#include <torii/command_service.hpp>
#include <logger/logger.hpp>
#include <peer_service/self_state.hpp>
Expand All @@ -25,9 +25,9 @@
#include <common/types.hpp>
#include <common/byteutils.hpp>

#include "connection/service.hpp"
#include "connection/client.hpp"
#include "sumeragi.hpp"
#include <consensus/connection/service.hpp>
#include <consensus/connection/client.hpp>
#include <consensus/sumeragi.hpp>

/**
* |ーーー| |ーーー| |ーーー| |ーーー|
Expand Down
1 change: 0 additions & 1 deletion irohad/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ target_link_libraries(irohad
ordering_service
consensus_service
chain_validator
stateful_validator
hash
stateless_validator
client_processor
Expand Down
2 changes: 1 addition & 1 deletion irohad/main/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void Irohad::run(){
iroha::model::ModelCryptoProviderImpl crypto_provider(keypair.privkey, keypair.pubkey);

iroha::validation::StatelessValidatorImpl stateless_validator(crypto_provider);
iroha::validation::StatefulValidatorStub stateful_validator;
// iroha::validation::StatefulValidatorStub stateful_validator;
iroha::validation::ChainValidatorStub chain_validator;
iroha::ordering::OrderingServiceStub ordering_service;
iroha::consensus::ConsensusServiceStub consensus_service;
Expand Down
4 changes: 1 addition & 3 deletions irohad/main/application.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@
#include <torii/processor/transaction_processor_stub.hpp>
#include <torii/torii_stub.hpp>
#include <validation/chain/validator_stub.hpp>
#include <validation/stateful/stub_validator.hpp>
#include <validation/stateless/validator_impl.hpp>

#include <model/model.hpp>
#include <model/model_crypto_provider_impl.hpp>
#include <crypto/crypto.hpp>
#include <ametsuchi/impl/storage_impl.hpp>

#include "server_runner.hpp"
#include <main/server_runner.hpp>


class Irohad{
Expand Down
2 changes: 1 addition & 1 deletion irohad/main/server_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ limitations under the License.
#include <grpc++/server_context.h>
#include <logger/logger.hpp>

#include "server_runner.hpp"
#include <main/server_runner.hpp>

logger::Logger console("ServerRunner");

Expand Down
1 change: 0 additions & 1 deletion irohad/model/account.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
#define IROHA_ACCOUNT_HPP

#include <common/types.hpp>
#include <model/model.hpp>
#include <string>

namespace iroha {
Expand Down
1 change: 1 addition & 0 deletions irohad/model/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#ifndef IROHA_COMMAND_HPP
#define IROHA_COMMAND_HPP

#include <ametsuchi/wsv_command.hpp>
#include <ametsuchi/wsv_query.hpp>
#include <model/account.hpp>
Expand Down
67 changes: 0 additions & 67 deletions irohad/model/model.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion irohad/model/peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#define IROHA_PEER_H

#include <common/types.hpp>
#include "account.hpp"
#include <model/account.hpp>

namespace iroha {
namespace model {
Expand Down
2 changes: 1 addition & 1 deletion irohad/model/query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#ifndef IROHA_QUERY_HPP
#define IROHA_QUERY_HPP

#include <model/model.hpp>
#include <string>
#include <model/signature.hpp>

namespace iroha {
namespace model {
Expand Down
4 changes: 2 additions & 2 deletions irohad/model/query_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#ifndef IROHA_QUERY_RESPONSE_HPP
#define IROHA_QUERY_RESPONSE_HPP

#include "query.hpp"
#include "client.hpp"
#include <model/query.hpp>
#include <model/client.hpp>

namespace iroha {
namespace model {
Expand Down
4 changes: 2 additions & 2 deletions irohad/model/transaction_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#ifndef IROHA_TRANSACTION_RESPONSE_HPP
#define IROHA_TRANSACTION_RESPONSE_HPP

#include "transaction.hpp"
#include "client.hpp"
#include <model/transaction.hpp>
#include <model/client.hpp>

namespace iroha {
namespace model {
Expand Down
4 changes: 2 additions & 2 deletions irohad/network/block_loader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#ifndef IROHA_BLOCK_LOADER_HPP
#define IROHA_BLOCK_LOADER_HPP

#include "model/model.hpp"
#include "rxcpp/rx-observable.hpp"
#include <model/block.hpp>
#include <rxcpp/rx-observable.hpp>

namespace iroha {
namespace network {
Expand Down
5 changes: 3 additions & 2 deletions irohad/network/network_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ limitations under the License.
#ifndef IROHA_NETWORK_H
#define IROHA_NETWORK_H

#include "model/model.hpp"
#include "rxcpp/rx-observable.hpp"
#include <model/proposal.hpp>
#include <model/block.hpp>
#include <rxcpp/rx-observable.hpp>

namespace iroha {
namespace network {
Expand Down
2 changes: 1 addition & 1 deletion irohad/network/peer_communication_stub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <consensus/consensus_service_stub.hpp>
#include <ordering/ordering_service.hpp>
#include <validation/chain/validator.hpp>
#include <validation/stateful/validator.hpp>
#include <validation/stateful_validator.hpp>
#include <model/model_crypto_provider.hpp>
#include <model/model_hash_provider.hpp>
#include <ordering/ordering_service_stub.hpp>
Expand Down
2 changes: 1 addition & 1 deletion irohad/ordering/connection/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
#include <endpoint.grpc.pb.h>
#include <grpc++/grpc++.h>

#include "client.hpp"
#include <ordering/connection/client.hpp>

namespace connection {
namespace ordering {
Expand Down
2 changes: 1 addition & 1 deletion irohad/ordering/connection/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include "service.hpp"
#include <ordering/connection/service.hpp>

namespace ordering {
namespace connection {
Expand Down
4 changes: 2 additions & 2 deletions irohad/ordering/observer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "observer.hpp"
#include <ordering/observer.hpp>
#include <peer_service/monitor.hpp>
#include <peer_service/self_state.hpp>
#include <timer/timer.hpp>
#include "queue.hpp"
#include <ordering/queue.hpp>

#include <torii/command_service.hpp>
#include <ordering/connection/client.hpp>
Expand Down
2 changes: 1 addition & 1 deletion irohad/ordering/queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#include "queue.hpp"
#include <ordering/queue.hpp>
#include <datetime/time.hpp>

// ToDo This is MVP. so we should discuss how to implements this.
Expand Down
2 changes: 1 addition & 1 deletion irohad/torii/command_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include "command_client.hpp"
#include <torii/command_client.hpp>
#include <block.pb.h>
#include <grpc++/grpc++.h>

Expand Down
2 changes: 1 addition & 1 deletion irohad/torii/command_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include "command_service.hpp"
#include <torii/command_service.hpp>
#include <grpc++/server_context.h>
#include <ordering/queue.hpp>
#include <validation/stateless/validator.hpp>
Expand Down
4 changes: 3 additions & 1 deletion irohad/torii/processor/query_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#ifndef IROHA_QUERY_PROCESSOR_HPP
#define IROHA_QUERY_PROCESSOR_HPP

#include <model/model.hpp>
#include <model/client.hpp>
#include <model/query.hpp>
#include <model/query_response.hpp>
#include <rxcpp/rx.hpp>

namespace iroha {
Expand Down
3 changes: 2 additions & 1 deletion irohad/torii/processor/transaction_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
#ifndef IROHA_TRANSACTION_PROCESSOR_HPP
#define IROHA_TRANSACTION_PROCESSOR_HPP

#include <model/model.hpp>
#include <rxcpp/rx.hpp>
#include <model/transaction.hpp>
#include <model/client.hpp>

namespace iroha {
namespace torii {
Expand Down
1 change: 1 addition & 0 deletions irohad/torii/processor/transaction_processor_stub.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <network/network_api.h>
#include <model/model_crypto_provider.hpp>
#include <model/transaction_response.hpp>
#include <torii/processor/transaction_processor.hpp>
#include <validation/stateless/validator.hpp>

Expand Down
Loading

0 comments on commit 7a4e028

Please sign in to comment.