doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
rvRegistryOptions Class Reference

#include <RegistryOptions.h>

Public Member Functions

 rvRegistryOptions ()
 
void Init (const char *key)
 
bool Save (void)
 
bool Load (void)
 
void SetWindowPlacement (const char *name, HWND hwnd)
 
bool GetWindowPlacement (const char *name, HWND hwnd)
 
void SetColumnWidths (const char *name, HWND list)
 
void GetColumnWidths (const char *name, HWND list)
 
void SetFloat (const char *name, float v)
 
void SetLong (const char *name, long v)
 
void SetBool (const char *name, bool v)
 
void SetString (const char *name, const char *v)
 
void SetVec4 (const char *name, idVec4 &v)
 
void SetBinary (const char *name, const unsigned char *data, int size)
 
float GetFloat (const char *name)
 
long GetLong (const char *name)
 
bool GetBool (const char *name)
 
const char * GetString (const char *name)
 
idVec4 GetVec4 (const char *name)
 
void GetBinary (const char *name, unsigned char *data, int size)
 
void AddRecentFile (const char *filename)
 
const char * GetRecentFile (int index)
 
int GetRecentFileCount (void)
 

Static Public Attributes

static const int MAX_MRU_SIZE = 4
 

Private Attributes

idList< idStrmRecentFiles
 
idDict mValues
 
idStr mBaseKey
 

Detailed Description

Definition at line 32 of file RegistryOptions.h.

Constructor & Destructor Documentation

rvRegistryOptions::rvRegistryOptions ( void  )

Definition at line 41 of file RegistryOptions.cpp.

Member Function Documentation

void rvRegistryOptions::AddRecentFile ( const char *  filename)

Definition at line 224 of file RegistryOptions.cpp.

void rvRegistryOptions::GetBinary ( const char *  name,
unsigned char *  data,
int  size 
)

Definition at line 326 of file RegistryOptions.cpp.

ID_INLINE bool rvRegistryOptions::GetBool ( const char *  name)

Definition at line 119 of file RegistryOptions.h.

void rvRegistryOptions::GetColumnWidths ( const char *  name,
HWND  list 
)

Definition at line 279 of file RegistryOptions.cpp.

ID_INLINE float rvRegistryOptions::GetFloat ( const char *  name)

Definition at line 109 of file RegistryOptions.h.

ID_INLINE long rvRegistryOptions::GetLong ( const char *  name)

Definition at line 114 of file RegistryOptions.h.

ID_INLINE const char * rvRegistryOptions::GetRecentFile ( int  index)

Definition at line 139 of file RegistryOptions.h.

ID_INLINE int rvRegistryOptions::GetRecentFileCount ( void  )

Definition at line 134 of file RegistryOptions.h.

ID_INLINE const char * rvRegistryOptions::GetString ( const char *  name)

Definition at line 124 of file RegistryOptions.h.

ID_INLINE idVec4 rvRegistryOptions::GetVec4 ( const char *  name)

Definition at line 129 of file RegistryOptions.h.

bool rvRegistryOptions::GetWindowPlacement ( const char *  name,
HWND  hwnd 
)

Definition at line 189 of file RegistryOptions.cpp.

void rvRegistryOptions::Init ( const char *  key)

Definition at line 49 of file RegistryOptions.cpp.

bool rvRegistryOptions::Load ( void  )

Definition at line 95 of file RegistryOptions.cpp.

bool rvRegistryOptions::Save ( void  )

Definition at line 60 of file RegistryOptions.cpp.

void rvRegistryOptions::SetBinary ( const char *  name,
const unsigned char *  data,
int  size 
)

Definition at line 308 of file RegistryOptions.cpp.

ID_INLINE void rvRegistryOptions::SetBool ( const char *  name,
bool  v 
)

Definition at line 94 of file RegistryOptions.h.

void rvRegistryOptions::SetColumnWidths ( const char *  name,
HWND  list 
)

Definition at line 256 of file RegistryOptions.cpp.

ID_INLINE void rvRegistryOptions::SetFloat ( const char *  name,
float  v 
)

Definition at line 84 of file RegistryOptions.h.

ID_INLINE void rvRegistryOptions::SetLong ( const char *  name,
long  v 
)

Definition at line 89 of file RegistryOptions.h.

ID_INLINE void rvRegistryOptions::SetString ( const char *  name,
const char *  v 
)

Definition at line 99 of file RegistryOptions.h.

ID_INLINE void rvRegistryOptions::SetVec4 ( const char *  name,
idVec4 v 
)

Definition at line 104 of file RegistryOptions.h.

void rvRegistryOptions::SetWindowPlacement ( const char *  name,
HWND  hwnd 
)

Definition at line 158 of file RegistryOptions.cpp.

Member Data Documentation

const int rvRegistryOptions::MAX_MRU_SIZE = 4
static

Definition at line 36 of file RegistryOptions.h.

idStr rvRegistryOptions::mBaseKey
private

Definition at line 81 of file RegistryOptions.h.

idList<idStr> rvRegistryOptions::mRecentFiles
private

Definition at line 79 of file RegistryOptions.h.

idDict rvRegistryOptions::mValues
private

Definition at line 80 of file RegistryOptions.h.


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