Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CUI_ConsoleVar Class Reference

cvar - internal class - not exported to DLL More...

#include <CUI_Console.h>

List of all members.

Public Member Functions

 CUI_ConsoleVar (const char *name, CUI_Console::cvartype_t type, void *data)
 constructor

 ~CUI_ConsoleVar ()
 destructor

bool SetValue (char *val)
 set the value - does text-to-other-types conversion

char * GetValue ()
 get the value as a string fit to echo to the console


Protected Attributes

std::string m_name
 name

CUI_Console::cvartype_t m_type
 type

void * m_data
 pointer to the actual parameter


Detailed Description

cvar - internal class - not exported to DLL

Used to view/modify a variable. Only a few basic types are supported. Hopefully with C++'s type-casting they will be sufficient.

If the cvar type is "string", the memory the string is in is owned by the DLL, and the data should be a **char


Member Data Documentation

CUI_Console::cvartype_t CUI_ConsoleVar::m_type [protected]
 

type

Should be close enough to allow C++ to type-cast to *data


The documentation for this class was generated from the following files:
Generated on Mon Sep 29 23:07:03 2003 for glGUI by doxygen 1.3.4