OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::ProcFS Class Reference

#include <procfs.hpp>

Inheritance diagram for openvpn::ProcFS:
[legend]
Collaboration diagram for openvpn::ProcFS:
[legend]

Public Member Functions

 OPENVPN_EXCEPTION (procfs_error)
 
 ProcFS (std::string fn_arg, std::string text_arg)
 
virtual void execute (std::ostream &os) override
 
virtual std::string to_string () const override
 
- Public Member Functions inherited from openvpn::Action
virtual Json::Value to_json () const
 
virtual ~Action ()=default
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Static Public Member Functions

static std::string to_string (const std::string &fn, const std::string &text)
 
static void write_sys (const std::string &fn, const std::string &text, Stop *async_stop=nullptr)
 
- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Private Attributes

std::string fn
 
std::string text
 

Additional Inherited Members

- Public Types inherited from openvpn::Action
typedef RCPtr< ActionPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- Public Attributes inherited from openvpn::Action
std::string mark
 

Detailed Description

Definition at line 24 of file procfs.hpp.

Constructor & Destructor Documentation

◆ ProcFS()

openvpn::ProcFS::ProcFS ( std::string  fn_arg,
std::string  text_arg 
)
inline

Definition at line 29 of file procfs.hpp.

Member Function Documentation

◆ execute()

virtual void openvpn::ProcFS::execute ( std::ostream &  os)
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 35 of file procfs.hpp.

◆ OPENVPN_EXCEPTION()

openvpn::ProcFS::OPENVPN_EXCEPTION ( procfs_error  )

◆ to_string() [1/2]

virtual std::string openvpn::ProcFS::to_string ( ) const
inlineoverridevirtual

Implements openvpn::Action.

Definition at line 48 of file procfs.hpp.

Here is the caller graph for this function:

◆ to_string() [2/2]

static std::string openvpn::ProcFS::to_string ( const std::string &  fn,
const std::string &  text 
)
inlinestatic

Definition at line 53 of file procfs.hpp.

◆ write_sys()

static void openvpn::ProcFS::write_sys ( const std::string &  fn,
const std::string &  text,
Stop async_stop = nullptr 
)
inlinestatic

Definition at line 58 of file procfs.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fn

std::string openvpn::ProcFS::fn
private

Definition at line 109 of file procfs.hpp.

◆ text

std::string openvpn::ProcFS::text
private

Definition at line 110 of file procfs.hpp.


The documentation for this class was generated from the following file: