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

#include <options.hpp>

Inheritance diagram for openvpn::OptionList::KeyValue:
[legend]
Collaboration diagram for openvpn::OptionList::KeyValue:
[legend]

Public Types

typedef RCPtr< KeyValuePtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 KeyValue ()
 
 KeyValue (const std::string &key_arg, const std::string &value_arg, const int key_priority_arg=0)
 
size_t combined_length () const
 
Option convert_to_option (Limits *lim, const std::string &meta_prefix) const
 
void split_priority ()
 
- 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 bool compare (const Ptr &a, const Ptr &b)
 
- 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.
 

Public Attributes

std::string key
 
std::string value
 
int key_priority
 

Static Private Member Functions

static std::string unescape (const std::string &value, bool &newline_present)
 
static bool singular_arg (const std::string &key)
 

Detailed Description

Definition at line 674 of file options.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 677 of file options.hpp.

Constructor & Destructor Documentation

◆ KeyValue() [1/2]

openvpn::OptionList::KeyValue::KeyValue ( )
inline

Definition at line 679 of file options.hpp.

◆ KeyValue() [2/2]

openvpn::OptionList::KeyValue::KeyValue ( const std::string &  key_arg,
const std::string &  value_arg,
const int  key_priority_arg = 0 
)
inline

Definition at line 683 of file options.hpp.

Member Function Documentation

◆ combined_length()

size_t openvpn::OptionList::KeyValue::combined_length ( ) const
inline

Definition at line 688 of file options.hpp.

Here is the caller graph for this function:

◆ compare()

static bool openvpn::OptionList::KeyValue::compare ( const Ptr a,
const Ptr b 
)
inlinestatic

Definition at line 739 of file options.hpp.

Here is the caller graph for this function:

◆ convert_to_option()

Option openvpn::OptionList::KeyValue::convert_to_option ( Limits lim,
const std::string &  meta_prefix 
) const
inline

Definition at line 693 of file options.hpp.

Here is the caller graph for this function:

◆ singular_arg()

static bool openvpn::OptionList::KeyValue::singular_arg ( const std::string &  key)
inlinestaticprivate

Definition at line 793 of file options.hpp.

Here is the caller graph for this function:

◆ split_priority()

void openvpn::OptionList::KeyValue::split_priority ( )
inline

Definition at line 716 of file options.hpp.

Here is the caller graph for this function:

◆ unescape()

static std::string openvpn::OptionList::KeyValue::unescape ( const std::string &  value,
bool &  newline_present 
)
inlinestaticprivate

Definition at line 755 of file options.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ key

std::string openvpn::OptionList::KeyValue::key

Definition at line 750 of file options.hpp.

◆ key_priority

int openvpn::OptionList::KeyValue::key_priority

Definition at line 752 of file options.hpp.

◆ value

std::string openvpn::OptionList::KeyValue::value

Definition at line 751 of file options.hpp.


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