OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::PrintFormatted< OUTPUT > Class Template Reference

#include <format.hpp>

Collaboration diagram for openvpn::PrintFormatted< OUTPUT >:
[legend]

Public Member Functions

 PrintFormatted (const std::string &fmt_arg, const size_t reserve)
 
void process ()
 
template<typename T >
void process (const T &last)
 
template<typename T , typename... Args>
void process (const T &first, Args... args)
 
std::string str ()
 

Private Member Functions

 PrintFormatted (const PrintFormatted &)=delete
 
PrintFormattedoperator= (const PrintFormatted &)=delete
 
template<typename T >
bool process_arg (const T &arg)
 
void process_finish ()
 

Static Private Member Functions

static int quote_delim (const char fmt)
 

Private Attributes

const std::string & fmt
 
std::string::const_iterator fi
 
print_formatted_detail::Output< OUTPUT > out
 
bool pct
 

Detailed Description

template<typename OUTPUT>
class openvpn::PrintFormatted< OUTPUT >

Definition at line 213 of file format.hpp.

Constructor & Destructor Documentation

◆ PrintFormatted() [1/2]

template<typename OUTPUT >
openvpn::PrintFormatted< OUTPUT >::PrintFormatted ( const std::string &  fmt_arg,
const size_t  reserve 
)
inline

Definition at line 216 of file format.hpp.

◆ PrintFormatted() [2/2]

template<typename OUTPUT >
openvpn::PrintFormatted< OUTPUT >::PrintFormatted ( const PrintFormatted< OUTPUT > &  )
privatedelete

Member Function Documentation

◆ operator=()

template<typename OUTPUT >
PrintFormatted & openvpn::PrintFormatted< OUTPUT >::operator= ( const PrintFormatted< OUTPUT > &  )
privatedelete

◆ process() [1/3]

template<typename OUTPUT >
void openvpn::PrintFormatted< OUTPUT >::process ( )
inline

Definition at line 224 of file format.hpp.

Here is the caller graph for this function:

◆ process() [2/3]

template<typename OUTPUT >
template<typename T , typename... Args>
void openvpn::PrintFormatted< OUTPUT >::process ( const T &  first,
Args...  args 
)
inline

Definition at line 237 of file format.hpp.

◆ process() [3/3]

template<typename OUTPUT >
template<typename T >
void openvpn::PrintFormatted< OUTPUT >::process ( const T &  last)
inline

Definition at line 230 of file format.hpp.

◆ process_arg()

template<typename OUTPUT >
template<typename T >
bool openvpn::PrintFormatted< OUTPUT >::process_arg ( const T &  arg)
inlineprivate

Definition at line 253 of file format.hpp.

Here is the caller graph for this function:

◆ process_finish()

template<typename OUTPUT >
void openvpn::PrintFormatted< OUTPUT >::process_finish ( )
inlineprivate

Definition at line 285 of file format.hpp.

Here is the caller graph for this function:

◆ quote_delim()

template<typename OUTPUT >
static int openvpn::PrintFormatted< OUTPUT >::quote_delim ( const char  fmt)
inlinestaticprivate

Definition at line 292 of file format.hpp.

Here is the caller graph for this function:

◆ str()

template<typename OUTPUT >
std::string openvpn::PrintFormatted< OUTPUT >::str ( )
inline

Definition at line 243 of file format.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ fi

template<typename OUTPUT >
std::string::const_iterator openvpn::PrintFormatted< OUTPUT >::fi
private

Definition at line 308 of file format.hpp.

◆ fmt

template<typename OUTPUT >
const std::string& openvpn::PrintFormatted< OUTPUT >::fmt
private

Definition at line 307 of file format.hpp.

◆ out

template<typename OUTPUT >
print_formatted_detail::Output<OUTPUT> openvpn::PrintFormatted< OUTPUT >::out
private

Definition at line 309 of file format.hpp.

◆ pct

template<typename OUTPUT >
bool openvpn::PrintFormatted< OUTPUT >::pct
private

Definition at line 310 of file format.hpp.


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