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

#include <persistfile.hpp>

Collaboration diagram for openvpn::PersistentFile:
[legend]

Public Member Functions

 PersistentFile (const std::string &fn_arg)
 
void write (const void *buf, size_t count)
 
struct stat stat ()
 
void write (const Buffer &buf)
 
void write (const std::string &str)
 

Private Member Functions

void syserr (const char *type)
 
void err (const char *type)
 

Private Attributes

std::string fn
 
ScopedFD fd
 

Detailed Description

Definition at line 31 of file persistfile.hpp.

Constructor & Destructor Documentation

◆ PersistentFile()

openvpn::PersistentFile::PersistentFile ( const std::string &  fn_arg)
inline

Definition at line 34 of file persistfile.hpp.

Member Function Documentation

◆ err()

void openvpn::PersistentFile::err ( const char *  type)
inlineprivate

Definition at line 86 of file persistfile.hpp.

Here is the caller graph for this function:

◆ stat()

struct stat openvpn::PersistentFile::stat ( )
inline

Definition at line 61 of file persistfile.hpp.

Here is the caller graph for this function:

◆ syserr()

void openvpn::PersistentFile::syserr ( const char *  type)
inlineprivate

Definition at line 80 of file persistfile.hpp.

Here is the caller graph for this function:

◆ write() [1/3]

void openvpn::PersistentFile::write ( const Buffer buf)
inline

Definition at line 69 of file persistfile.hpp.

◆ write() [2/3]

void openvpn::PersistentFile::write ( const std::string &  str)
inline

Definition at line 74 of file persistfile.hpp.

◆ write() [3/3]

void openvpn::PersistentFile::write ( const void *  buf,
size_t  count 
)
inline

Definition at line 43 of file persistfile.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fd

ScopedFD openvpn::PersistentFile::fd
private

Definition at line 92 of file persistfile.hpp.

◆ fn

std::string openvpn::PersistentFile::fn
private

Definition at line 91 of file persistfile.hpp.


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