- -( dyne // software :: culture :: events :: planet :: discussion :: museum \\ freaknet )- -
 
Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members

Profile Class Reference

#include <profile.h>

Collaboration diagram for Profile:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Profile (char *name)
virtual ~Profile ()
bool create_default_profile ()
bool load_profile (const char *section)
bool write_profile (const char *section)
virtual bool apply_profile ()=0
int list_profiles (char *str)
bool default_profile ()
int read_int (const char *section, const char *option)
bool write_int (const char *section, const char *option, const int value)
bool read_str (const char *section, const char *option, char *store)
bool write_str (const char *section, const char *option, const char *value)
float read_float (const char *section, const char *option)
bool write_float (const char *section, const char *option, const float value)

Public Attributes

settingscfg

Protected Member Functions

int cfg_check (const char *file, int output)
bool cfg_read (const char *file, const char *section, const char *option, char *value)
bool cfg_write (const char *file, const char *section, const char *option, const char *value)
bool cfg_erase (const char *file, const char *section, const char *option)
int cfg_get_sections (const char *file, char *dest)
void setup (struct settings *conf)

Protected Attributes

char profile_path [MAX_PATH_SIZE]

Constructor & Destructor Documentation

Profile::Profile char *  name  ) 
 

Definition at line 445 of file profile.cpp.

Profile::~Profile  )  [virtual]
 

Definition at line 456 of file profile.cpp.


Member Function Documentation

virtual bool Profile::apply_profile  )  [pure virtual]
 

int Profile::cfg_check const char *  file,
int  output
[protected]
 

Definition at line 183 of file profile.cpp.

bool Profile::cfg_erase const char *  file,
const char *  section,
const char *  option
[protected]
 

Definition at line 361 of file profile.cpp.

int Profile::cfg_get_sections const char *  file,
char *  dest
[protected]
 

Definition at line 412 of file profile.cpp.

bool Profile::cfg_read const char *  file,
const char *  section,
const char *  option,
char *  value
[protected]
 

Definition at line 238 of file profile.cpp.

bool Profile::cfg_write const char *  file,
const char *  section,
const char *  option,
const char *  value
[protected]
 

Definition at line 268 of file profile.cpp.

bool Profile::create_default_profile  ) 
 

Definition at line 547 of file profile.cpp.

bool Profile::default_profile  ) 
 

Definition at line 569 of file profile.cpp.

int Profile::list_profiles char *  str  )  [inline]
 

Definition at line 77 of file profile.h.

bool Profile::load_profile const char *  section  ) 
 

Definition at line 459 of file profile.cpp.

float Profile::read_float const char *  section,
const char *  option
 

Definition at line 610 of file profile.cpp.

int Profile::read_int const char *  section,
const char *  option
 

Definition at line 580 of file profile.cpp.

bool Profile::read_str const char *  section,
const char *  option,
char *  store
 

Definition at line 634 of file profile.cpp.

void Profile::setup struct settings conf  )  [inline, protected]
 

Definition at line 62 of file profile.h.

bool Profile::write_float const char *  section,
const char *  option,
const float  value
 

Definition at line 622 of file profile.cpp.

bool Profile::write_int const char *  section,
const char *  option,
const int  value
 

Definition at line 597 of file profile.cpp.

bool Profile::write_profile const char *  section  ) 
 

Definition at line 509 of file profile.cpp.

bool Profile::write_str const char *  section,
const char *  option,
const char *  value
 

Definition at line 642 of file profile.cpp.


Member Data Documentation

struct settings* Profile::cfg
 

Definition at line 92 of file profile.h.

char Profile::profile_path[MAX_PATH_SIZE] [protected]
 

Definition at line 60 of file profile.h.


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