add EventAdder interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
will be used as a base implementations of sources of random events
This commit is contained in:
parent
5557f0d9e6
commit
bc5bb6e700
|
@ -181,7 +181,7 @@ add_subdirectory(lib/fmt EXCLUDE_FROM_ALL)
|
|||
endif(NOT CMAKE_EXE_LINKER_FLAGS MATCHES "-fuse-ld=lld")
|
||||
endif()
|
||||
|
||||
add_executable(fortuna main.cpp generator.cpp generator.h fortuna.cpp fortuna.h accumulator.cpp accumulator.h pool.cpp pool.h)
|
||||
add_executable(fortuna main.cpp generator.cpp generator.h fortuna.cpp fortuna.h accumulator.cpp accumulator.h pool.cpp pool.h event_adder.h)
|
||||
# ref: https://cmake.org/pipermail/cmake/2016-May/063400.html
|
||||
target_link_libraries(fortuna
|
||||
PRIVATE cryptopp
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef FORTUNA_EVENT_ADDER_H
|
||||
#define FORTUNA_EVENT_ADDER_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace fortuna {
|
||||
namespace accumulator {
|
||||
|
||||
class EventAdder {
|
||||
public:
|
||||
virtual void add(std::vector<char> e) = 0;
|
||||
};
|
||||
|
||||
} //namespace accumulator
|
||||
} //namespace fortuna
|
||||
#endif//FORTUNA_EVENT_ADDER_H
|
Reference in New Issue