Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
RegistryClass Class Reference

#include <registry.h>

Public Member Functions

 RegistryClass (const char *sub_key, bool create=true)
 
 ~RegistryClass (void)
 
bool Is_Valid (void)
 
int Get_Int (const char *name, int def_value=0)
 
void Set_Int (const char *name, int value)
 
bool Get_Bool (const char *name, bool def_value=false)
 
void Set_Bool (const char *name, bool value)
 
float Get_Float (const char *name, float def_value=0.0f)
 
void Set_Float (const char *name, float value)
 
char * Get_String (const char *name, char *value, int value_size, const char *default_string=NULL)
 
void Get_String (const char *name, StringClass &string, const char *default_string=NULL)
 
void Set_String (const char *name, const char *value)
 
void Get_String (const WCHAR *name, WideStringClass &string, const WCHAR *default_string=NULL)
 
void Set_String (const WCHAR *name, const WCHAR *value)
 
void Get_Bin (const char *name, void *buffer, int buffer_size)
 
int Get_Bin_Size (const char *name)
 
void Set_Bin (const char *name, const void *buffer, int buffer_size)
 
void Get_Value_List (DynamicVectorClass< StringClass > &list)
 
void Delete_Value (const char *name)
 
void Deleta_All_Values (void)
 

Static Public Member Functions

static bool Exists (const char *sub_key)
 
static void Set_Read_Only (bool set)
 
static void Delete_Registry_Tree (char *path)
 
static void Load_Registry (const char *filename, char *old_path, char *new_path)
 
static void Save_Registry (const char *filename, char *path)
 

Detailed Description

Definition at line 56 of file registry.h.

Constructor & Destructor Documentation

◆ RegistryClass()

RegistryClass::RegistryClass ( const char * sub_key,
bool create = true )

Definition at line 64 of file registry.cpp.

◆ ~RegistryClass()

RegistryClass::~RegistryClass ( void )

Definition at line 86 of file registry.cpp.

Member Function Documentation

◆ Deleta_All_Values()

void RegistryClass::Deleta_All_Values ( void )

Definition at line 276 of file registry.cpp.

◆ Delete_Registry_Tree()

void RegistryClass::Delete_Registry_Tree ( char * path)
static

Definition at line 665 of file registry.cpp.

◆ Delete_Value()

void RegistryClass::Delete_Value ( const char * name)

Definition at line 267 of file registry.cpp.

◆ Exists()

bool RegistryClass::Exists ( const char * sub_key)
static

Definition at line 48 of file registry.cpp.

◆ Get_Bin()

void RegistryClass::Get_Bin ( const char * name,
void * buffer,
int buffer_size )

Definition at line 164 of file registry.cpp.

◆ Get_Bin_Size()

int RegistryClass::Get_Bin_Size ( const char * name)

Definition at line 154 of file registry.cpp.

◆ Get_Bool()

bool RegistryClass::Get_Bool ( const char * name,
bool def_value = false )

Definition at line 119 of file registry.cpp.

◆ Get_Float()

float RegistryClass::Get_Float ( const char * name,
float def_value = 0.0f )

Definition at line 130 of file registry.cpp.

◆ Get_Int()

int RegistryClass::Get_Int ( const char * name,
int def_value = 0 )

Definition at line 95 of file registry.cpp.

◆ Get_String() [1/3]

char * RegistryClass::Get_String ( const char * name,
char * value,
int value_size,
const char * default_string = NULL )

Definition at line 212 of file registry.cpp.

◆ Get_String() [2/3]

void RegistryClass::Get_String ( const char * name,
StringClass & string,
const char * default_string = NULL )

Definition at line 188 of file registry.cpp.

◆ Get_String() [3/3]

void RegistryClass::Get_String ( const WCHAR * name,
WideStringClass & string,
const WCHAR * default_string = NULL )

Definition at line 298 of file registry.cpp.

◆ Get_Value_List()

void RegistryClass::Get_Value_List ( DynamicVectorClass< StringClass > & list)

Definition at line 244 of file registry.cpp.

◆ Is_Valid()

bool RegistryClass::Is_Valid ( void )
inline

Definition at line 64 of file registry.h.

◆ Load_Registry()

void RegistryClass::Load_Registry ( const char * filename,
char * old_path,
char * new_path )
static

Definition at line 546 of file registry.cpp.

◆ Save_Registry()

void RegistryClass::Save_Registry ( const char * filename,
char * path )
static

Definition at line 522 of file registry.cpp.

◆ Set_Bin()

void RegistryClass::Set_Bin ( const char * name,
const void * buffer,
int buffer_size )

Definition at line 175 of file registry.cpp.

◆ Set_Bool()

void RegistryClass::Set_Bool ( const char * name,
bool value )

Definition at line 124 of file registry.cpp.

◆ Set_Float()

void RegistryClass::Set_Float ( const char * name,
float value )

Definition at line 143 of file registry.cpp.

◆ Set_Int()

void RegistryClass::Set_Int ( const char * name,
int value )

Definition at line 107 of file registry.cpp.

◆ Set_Read_Only()

static void RegistryClass::Set_Read_Only ( bool set)
inlinestatic

Definition at line 101 of file registry.h.

◆ Set_String() [1/2]

void RegistryClass::Set_String ( const char * name,
const char * value )

Definition at line 232 of file registry.cpp.

◆ Set_String() [2/2]

void RegistryClass::Set_String ( const WCHAR * name,
const WCHAR * value )

Definition at line 322 of file registry.cpp.


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