QuISP
Loading...
Searching...
No Matches
Logger.h
Go to the documentation of this file.
1#pragma once
3#include <iostream>
6class TestLogger : public ILogger {
7 public:
10 void logPacket(const std::string& event_type, omnetpp::cMessage const* const msg) override { std::cout << "logPacket: " << event_type << std::endl; };
11 void logQubitState(quisp::modules::QNIC_type qnic_type, int qnic_index, int qubit_index, bool is_busy, bool is_allocated) override {
12 std::cout << "logQubitState: " << qnic_index << ", " << qubit_index << ", busy: " << is_busy << ", allocated: " << is_allocated << std::endl;
13 };
14
15 void logBellPairInfo(const std::string& event_type, int partner_addr, quisp::modules::QNIC_type qnic_type, int qnic_index, int qubit_index) override{};
16
17 void setModule(omnetpp::cModule const* const mod) override {}
18 void setQNodeAddress(int addr) override {}
19};
20} // namespace quisp_test::Logger
Interface of Logger class. Logger class that inherits ILogger is responsible for logging simulation r...
Definition ILogger.h:22
Definition Logger.h:6
void logBellPairInfo(const std::string &event_type, int partner_addr, quisp::modules::QNIC_type qnic_type, int qnic_index, int qubit_index) override
Definition Logger.h:15
TestLogger()
Definition Logger.h:8
~TestLogger()
Definition Logger.h:9
void setQNodeAddress(int addr) override
Definition Logger.h:18
void logQubitState(quisp::modules::QNIC_type qnic_type, int qnic_index, int qubit_index, bool is_busy, bool is_allocated) override
Definition Logger.h:11
void logPacket(const std::string &event_type, omnetpp::cMessage const *const msg) override
Definition Logger.h:10
void setModule(omnetpp::cModule const *const mod) override
Definition Logger.h:17
QNIC_type
Definition QNIC.h:18
Definition Logger.h:4