OpenVPN 3 Core Library
Loading...
Searching...
No Matches
destruct.hpp
Go to the documentation of this file.
1
// OpenVPN -- An application to securely tunnel IP networks
2
// over a single port, with support for SSL/TLS-based
3
// session authentication and key exchange,
4
// packet encryption, packet authentication, and
5
// packet compression.
6
//
7
// Copyright (C) 2012- OpenVPN Inc.
8
//
9
// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10
//
11
12
#ifndef OPENVPN_COMMON_DESTRUCT_H
13
#define OPENVPN_COMMON_DESTRUCT_H
14
15
#include <
openvpn/common/rc.hpp
>
16
17
// used for general-purpose cleanup
18
19
namespace
openvpn
{
20
21
struct
DestructorBase
:
public
RC
<thread_unsafe_refcount>
22
{
23
typedef
RCPtr<DestructorBase>
Ptr
;
24
virtual
void
destroy
(std::ostream &
os
) = 0;
25
virtual
~DestructorBase
() =
default
;
26
};
27
28
}
// namespace openvpn
29
30
#endif
openvpn::RCPtr
The smart pointer class.
Definition
rc.hpp:119
openvpn::RC
Reference count base class for objects tracked by RCPtr. Disallows copying and assignment.
Definition
rc.hpp:912
openvpn
Definition
ovpncli.cpp:97
rc.hpp
openvpn::DestructorBase
Definition
destruct.hpp:22
openvpn::DestructorBase::Ptr
RCPtr< DestructorBase > Ptr
Definition
destruct.hpp:23
openvpn::DestructorBase::~DestructorBase
virtual ~DestructorBase()=default
openvpn::DestructorBase::destroy
virtual void destroy(std::ostream &os)=0
os
std::ostringstream os
Definition
test_capture.cpp:1086
openvpn
common
destruct.hpp
Generated by
1.9.8