Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Profile Class Reference

#include "OVR_Profile.h"

Inheritance diagram for OVR::Profile:
Inheritance graph
Collaboration diagram for OVR::Profile:
Collaboration graph

Public Member Functions

 ~Profile ()
 
int GetNumValues (const char *key) const
 
const char * GetValue (const char *key)
 
char * GetValue (const char *key, char *val, int val_length) const
 
bool GetBoolValue (const char *key, bool default_val) const
 
int GetIntValue (const char *key, int default_val) const
 
float GetFloatValue (const char *key, float default_val) const
 
int GetFloatValues (const char *key, float *values, int num_vals) const
 
double GetDoubleValue (const char *key, double default_val) const
 
int GetDoubleValues (const char *key, double *values, int num_vals) const
 
void SetValue (const char *key, const char *val)
 
void SetBoolValue (const char *key, bool val)
 
void SetIntValue (const char *key, int val)
 
void SetFloatValue (const char *key, float val)
 
void SetFloatValues (const char *key, const float *vals, int num_vals)
 
void SetDoubleValue (const char *key, double val)
 
void SetDoubleValues (const char *key, const double *vals, int num_vals)
 
bool Close ()
 
- Public Member Functions inherited from OVR::RefCountBase< Profile >
OVR_FORCE_INLINE RefCountBase ()
 
- Public Member Functions inherited from OVR::RefCountBaseStatImpl< RefCountImpl >
 RefCountBaseStatImpl ()
 
- Public Member Functions inherited from OVR::RefCountImpl
void AddRef ()
 
void Release ()
 
- Public Member Functions inherited from OVR::RefCountImplCore
OVR_FORCE_INLINE RefCountImplCore ()
 
virtual ~RefCountImplCore ()
 
int GetRefCount () const
 
void operator= (const RefCountImplCore &)
 

Protected Member Functions

 Profile ()
 
void SetValue (JSON *val)
 
void CopyItems (JSON *root, String prefix)
 
bool LoadDeviceFile (unsigned int device_id, const char *serial)
 
bool LoadDeviceProfile (const DeviceBase *device)
 
bool LoadProfile (JSON *root, const char *user, const char *device_model, const char *device_serial)
 
bool LoadUser (JSON *root, const char *user, const char *device_name, const char *device_serial)
 

Static Protected Member Functions

static bool LoadProfile (const DeviceBase *device, const char *user, Profile **profile)
 

Protected Attributes

OVR::Hash< String, JSON
*, String::HashFunctor
ValMap
 
OVR::Array< JSON * > Values
 
OVR::String TempVal
 
- Protected Attributes inherited from OVR::RefCountImplCore
volatile int RefCount
 

Friends

class ProfileManager
 

Additional Inherited Members

- Static Public Member Functions inherited from OVR::RefCountImplCore
static void checkInvalidDelete (RefCountImplCore *)
 

Detailed Description

Definition at line 113 of file OVR_Profile.h.

Constructor & Destructor Documentation

OVR::Profile::~Profile ( )

Definition at line 963 of file OVR_Profile.cpp.

OVR::Profile::Profile ( )
inlineprotected

Definition at line 144 of file OVR_Profile.h.

Member Function Documentation

bool OVR::Profile::Close ( )

Definition at line 972 of file OVR_Profile.cpp.

void OVR::Profile::CopyItems ( JSON root,
String  prefix 
)
protected

Definition at line 979 of file OVR_Profile.cpp.

bool OVR::Profile::GetBoolValue ( const char *  key,
bool  default_val 
) const

Definition at line 1245 of file OVR_Profile.cpp.

double OVR::Profile::GetDoubleValue ( const char *  key,
double  default_val 
) const

Definition at line 1303 of file OVR_Profile.cpp.

int OVR::Profile::GetDoubleValues ( const char *  key,
double *  values,
int  num_vals 
) const

Definition at line 1313 of file OVR_Profile.cpp.

float OVR::Profile::GetFloatValue ( const char *  key,
float  default_val 
) const

Definition at line 1265 of file OVR_Profile.cpp.

int OVR::Profile::GetFloatValues ( const char *  key,
float *  values,
int  num_vals 
) const

Definition at line 1275 of file OVR_Profile.cpp.

int OVR::Profile::GetIntValue ( const char *  key,
int  default_val 
) const

Definition at line 1255 of file OVR_Profile.cpp.

int OVR::Profile::GetNumValues ( const char *  key) const

Definition at line 1230 of file OVR_Profile.cpp.

const char * OVR::Profile::GetValue ( const char *  key)

Definition at line 1213 of file OVR_Profile.cpp.

char * OVR::Profile::GetValue ( const char *  key,
char *  val,
int  val_length 
) const

Definition at line 1197 of file OVR_Profile.cpp.

bool OVR::Profile::LoadDeviceFile ( unsigned int  device_id,
const char *  serial 
)
protected

Definition at line 1006 of file OVR_Profile.cpp.

bool OVR::Profile::LoadDeviceProfile ( const DeviceBase device)
protected

Definition at line 1065 of file OVR_Profile.cpp.

static bool OVR::Profile::LoadProfile ( const DeviceBase device,
const char *  user,
Profile **  profile 
)
staticprotected
bool OVR::Profile::LoadProfile ( JSON root,
const char *  user,
const char *  device_model,
const char *  device_serial 
)
protected

Definition at line 1184 of file OVR_Profile.cpp.

bool OVR::Profile::LoadUser ( JSON root,
const char *  user,
const char *  device_name,
const char *  device_serial 
)
protected

Definition at line 1113 of file OVR_Profile.cpp.

void OVR::Profile::SetBoolValue ( const char *  key,
bool  val 
)

Definition at line 1383 of file OVR_Profile.cpp.

void OVR::Profile::SetDoubleValue ( const char *  key,
double  val 
)

Definition at line 1458 of file OVR_Profile.cpp.

void OVR::Profile::SetDoubleValues ( const char *  key,
const double *  vals,
int  num_vals 
)

Definition at line 1476 of file OVR_Profile.cpp.

void OVR::Profile::SetFloatValue ( const char *  key,
float  val 
)

Definition at line 1410 of file OVR_Profile.cpp.

void OVR::Profile::SetFloatValues ( const char *  key,
const float *  vals,
int  num_vals 
)

Definition at line 1416 of file OVR_Profile.cpp.

void OVR::Profile::SetIntValue ( const char *  key,
int  val 
)

Definition at line 1404 of file OVR_Profile.cpp.

void OVR::Profile::SetValue ( const char *  key,
const char *  val 
)

Definition at line 1362 of file OVR_Profile.cpp.

void OVR::Profile::SetValue ( JSON val)
protected

Definition at line 1341 of file OVR_Profile.cpp.

Friends And Related Function Documentation

friend class ProfileManager
friend

Definition at line 169 of file OVR_Profile.h.

Field Documentation

OVR::String OVR::Profile::TempVal
protected

Definition at line 118 of file OVR_Profile.h.

OVR::Hash<String, JSON*, String::HashFunctor> OVR::Profile::ValMap
protected

Definition at line 116 of file OVR_Profile.h.

OVR::Array<JSON*> OVR::Profile::Values
protected

Definition at line 117 of file OVR_Profile.h.


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