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

#include <merge.hpp>

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

Public Member Functions

 ProfileMergeFromString (const std::string &profile_content, const std::string &ref_dir, const Follow follow_references, const size_t max_line_len, const size_t max_size)
 
- Public Member Functions inherited from openvpn::ProfileMerge
 OPENVPN_EXCEPTION (merge_error)
 
Status status () const
 
const std::string & error () const
 
const std::string & basename () const
 
const std::string & profile_content () const
 
const std::vector< std::string > & ref_path_list () const
 
const char * status_string () const
 
 ProfileMerge (const std::string &profile_path, const std::string &profile_ext, const std::string &profile_dir_override, const Follow follow_references, const size_t max_line_len, const size_t max_size)
 

Static Public Member Functions

static std::string merge (const std::string &profile_content, const std::string &ref_dir, const Follow follow_references, const size_t max_line_len, const size_t max_size)
 
- Static Public Member Functions inherited from openvpn::ProfileMerge
static std::string merge (const std::string &profile_path, const std::string &profile_ext, const std::string &profile_dir_override, const Follow follow_references, const size_t max_line_len, const size_t max_size)
 

Additional Inherited Members

- Public Types inherited from openvpn::ProfileMerge
enum  Status {
  MERGE_UNDEFINED , MERGE_SUCCESS , MERGE_EXCEPTION , MERGE_OVPN_EXT_FAIL ,
  MERGE_OVPN_FILE_FAIL , MERGE_REF_FAIL , MERGE_MULTIPLE_REF_FAIL
}
 
enum  Follow { FOLLOW_NONE , FOLLOW_PARTIAL , FOLLOW_FULL }
 
- Protected Member Functions inherited from openvpn::ProfileMerge
 ProfileMerge ()
 
void expand_profile (const std::string &orig_profile_content, const std::string &profile_dir, const Follow follow_references, const size_t max_line_len, const size_t max_size, size_t total_size)
 
- Static Protected Member Functions inherited from openvpn::ProfileMerge
static bool is_fileref_directive (const std::string &d, unsigned int &flags)
 
- Protected Attributes inherited from openvpn::ProfileMerge
Status status_
 
std::string profile_content_
 
std::string basename_
 
std::string error_
 
std::vector< std::string > ref_fail_list_
 
std::vector< std::string > ref_succeed_list_
 

Detailed Description

Definition at line 478 of file merge.hpp.

Constructor & Destructor Documentation

◆ ProfileMergeFromString()

openvpn::ProfileMergeFromString::ProfileMergeFromString ( const std::string &  profile_content,
const std::string &  ref_dir,
const Follow  follow_references,
const size_t  max_line_len,
const size_t  max_size 
)
inline

Definition at line 481 of file merge.hpp.

Member Function Documentation

◆ merge()

static std::string openvpn::ProfileMergeFromString::merge ( const std::string &  profile_content,
const std::string &  ref_dir,
const Follow  follow_references,
const size_t  max_line_len,
const size_t  max_size 
)
inlinestatic

Definition at line 504 of file merge.hpp.


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