ACE 8.0.1
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
ACE_Registry_ImpExp Class Reference

Configuration object that imports/exports data to a file formatted using the Win32 Registry file export format. This format looks like [Section] "key"="String Data" "key"=dword: numeric data in hexadecimal format "key"=hex: binary data. More...

#include <Configuration_Import_Export.h>

Inheritance diagram for ACE_Registry_ImpExp:
Inheritance graph
[legend]
Collaboration diagram for ACE_Registry_ImpExp:
Collaboration graph
[legend]

Public Member Functions

 ACE_Registry_ImpExp (ACE_Configuration &)
 Construction.
 
virtual ~ACE_Registry_ImpExp ()=default
 Destruction.
 
virtual int import_config (const ACE_TCHAR *filename)
 
virtual int export_config (const ACE_TCHAR *filename)
 
- Public Member Functions inherited from ACE_Config_ImpExp_Base
 ACE_Config_ImpExp_Base (ACE_Configuration &config)
 Constructor taking the ACE_Configuration to import/export to.
 
virtual ~ACE_Config_ImpExp_Base ()=default
 

Private Member Functions

int export_section (const ACE_Configuration_Section_Key &section, const ACE_TString &path, FILE *out)
 
int process_previous_line_format (ACE_TCHAR *buffer, ACE_Configuration_Section_Key &section)
 
 ACE_Registry_ImpExp (const ACE_Registry_ImpExp &)=delete
 
ACE_Registry_ImpExpoperator= (const ACE_Registry_ImpExp &)=delete
 

Additional Inherited Members

- Protected Attributes inherited from ACE_Config_ImpExp_Base
ACE_Configurationconfig_
 

Detailed Description

Configuration object that imports/exports data to a file formatted using the Win32 Registry file export format. This format looks like [Section] "key"="String Data" "key"=dword: numeric data in hexadecimal format "key"=hex: binary data.

Todo
  • Add dynamic buffer when importing. currently it will not allow importing of values greater than a fixed amount (4096 bytes)

Constructor & Destructor Documentation

◆ ACE_Registry_ImpExp() [1/2]

ACE_Registry_ImpExp::ACE_Registry_ImpExp ( ACE_Configuration & config)

Construction.

◆ ~ACE_Registry_ImpExp()

virtual ACE_Registry_ImpExp::~ACE_Registry_ImpExp ( )
virtualdefault

Destruction.

◆ ACE_Registry_ImpExp() [2/2]

ACE_Registry_ImpExp::ACE_Registry_ImpExp ( const ACE_Registry_ImpExp & )
privatedelete

Member Function Documentation

◆ export_config()

int ACE_Registry_ImpExp::export_config ( const ACE_TCHAR * filename)
virtual

This method exports the entire configuration database to filename. Once the file is opened this method calls export_section() passing the root section.

Implements ACE_Config_ImpExp_Base.

◆ export_section()

int ACE_Registry_ImpExp::export_section ( const ACE_Configuration_Section_Key & section,
const ACE_TString & path,
FILE * out )
private

◆ import_config()

int ACE_Registry_ImpExp::import_config ( const ACE_TCHAR * filename)
virtual

Imports the configuration database from filename. No existing data is removed.

Implements ACE_Config_ImpExp_Base.

◆ operator=()

ACE_Registry_ImpExp & ACE_Registry_ImpExp::operator= ( const ACE_Registry_ImpExp & )
privatedelete

◆ process_previous_line_format()

int ACE_Registry_ImpExp::process_previous_line_format ( ACE_TCHAR * buffer,
ACE_Configuration_Section_Key & section )
private

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