diff options
Diffstat (limited to 'apps/hiperf/src/client.h')
-rw-r--r-- | apps/hiperf/src/client.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/apps/hiperf/src/client.h b/apps/hiperf/src/client.h index f45b9af43..beecbd473 100644 --- a/apps/hiperf/src/client.h +++ b/apps/hiperf/src/client.h @@ -16,19 +16,21 @@ #pragma once #include <common.h> +#include <hicn/transport/utils/noncopyable.h> namespace hiperf { -class HIperfClient { +class HIperfClient : public ::utils::NonCopyable { public: - HIperfClient(const ClientConfiguration &conf); + explicit HIperfClient(const ClientConfiguration &conf); + ~HIperfClient(); - int setup(); - void run(); + int setup() const; + void run() const; private: class Impl; - Impl *impl_; + std::unique_ptr<Impl> impl_; }; -} // namespace hiperf
\ No newline at end of file +} // namespace hiperf |