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

#include <UserPreferences.h>

Inherits PreferenceMap.

Inherited by CustomMatchPreferences, GameSpyLoginPreferences, GameSpyMiscPreferences, IgnorePreferences, LANPreferences, LadderPreferences, OptionPreferences, QuickMatchPreferences, SkirmishBattleHonors, and SkirmishPreferences.

Public Member Functions

 UserPreferences ()
 
virtual ~UserPreferences ()
 
virtual Bool load (AsciiString fname)
 
virtual Bool write (void)
 
Bool getBool (AsciiString key, Bool defaultValue) const
 
Real getReal (AsciiString key, Real defaultValue) const
 
Int getInt (AsciiString key, Int defaultValue) const
 
AsciiString getAsciiString (AsciiString key, AsciiString defaultValue) const
 
void setBool (AsciiString key, Bool val)
 
void setReal (AsciiString key, Real val)
 
void setInt (AsciiString key, Int val)
 
void setAsciiString (AsciiString key, AsciiString val)
 

Protected Attributes

AsciiString m_filename
 

Detailed Description

Definition at line 52 of file UserPreferences.h.

Constructor & Destructor Documentation

◆ UserPreferences()

UserPreferences::UserPreferences ( void )

Definition at line 114 of file UserPreferences.cpp.

◆ ~UserPreferences()

UserPreferences::~UserPreferences ( void )
virtual

Definition at line 118 of file UserPreferences.cpp.

Member Function Documentation

◆ getAsciiString()

AsciiString UserPreferences::getAsciiString ( AsciiString key,
AsciiString defaultValue ) const

Definition at line 212 of file UserPreferences.cpp.

◆ getBool()

Bool UserPreferences::getBool ( AsciiString key,
Bool defaultValue ) const

Definition at line 178 of file UserPreferences.cpp.

◆ getInt()

Int UserPreferences::getInt ( AsciiString key,
Int defaultValue ) const

Definition at line 201 of file UserPreferences.cpp.

◆ getReal()

Real UserPreferences::getReal ( AsciiString key,
Real defaultValue ) const

Definition at line 190 of file UserPreferences.cpp.

◆ load()

Bool UserPreferences::load ( AsciiString fname)
virtual

Reimplemented in GameSpyLoginPreferences.

Definition at line 123 of file UserPreferences.cpp.

◆ setAsciiString()

void UserPreferences::setAsciiString ( AsciiString key,
AsciiString val )

Definition at line 238 of file UserPreferences.cpp.

◆ setBool()

void UserPreferences::setBool ( AsciiString key,
Bool val )

Definition at line 223 of file UserPreferences.cpp.

◆ setInt()

void UserPreferences::setInt ( AsciiString key,
Int val )

Definition at line 233 of file UserPreferences.cpp.

◆ setReal()

void UserPreferences::setReal ( AsciiString key,
Real val )

Definition at line 228 of file UserPreferences.cpp.

◆ write()

Bool UserPreferences::write ( void )
virtual

Reimplemented in GameSpyLoginPreferences, LadderPreferences, and SkirmishPreferences.

Definition at line 158 of file UserPreferences.cpp.

Member Data Documentation

◆ m_filename

AsciiString UserPreferences::m_filename
protected

Definition at line 72 of file UserPreferences.h.


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