Public Member Functions | Public Attributes
vgui_simple_field< T > Class Template Reference

Templated fields for dialog boxes. More...

#include <vgui_simple_field.h>

Inheritance diagram for vgui_simple_field< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 vgui_simple_field (const char *text, T &variable_to_modify)
 ~vgui_simple_field ()
vcl_string current_value () const
bool update_value (const vcl_string &)

Public Attributes

T & var
vcl_string label

Detailed Description

template<class T>
class vgui_simple_field< T >

Templated fields for dialog boxes.

vgui_simple_field is templated over the type of variable it stores. The given template instances are all for fundamental types, but the template can be used for any data type that has the input and output stream operators defined (<< and >>)

Definition at line 31 of file vgui_simple_field.h.


Constructor & Destructor Documentation

template<class T >
vgui_simple_field< T >::vgui_simple_field ( const char *  text,
T &  variable_to_modify 
)

Definition at line 17 of file vgui_simple_field.cxx.

template<class T >
vgui_simple_field< T >::~vgui_simple_field ( )

Definition at line 24 of file vgui_simple_field.cxx.


Member Function Documentation

template<class T >
vcl_string vgui_simple_field< T >::current_value ( ) const [virtual]

Implements vgui_dialog_field.

Definition at line 29 of file vgui_simple_field.cxx.

template<class T >
bool vgui_simple_field< T >::update_value ( const vcl_string &  s) [virtual]

Implements vgui_dialog_field.

Definition at line 37 of file vgui_simple_field.cxx.


Member Data Documentation

vcl_string vgui_dialog_field::label [inherited]

Definition at line 26 of file vgui_dialog_field.h.

template<class T >
T& vgui_simple_field< T >::var

Definition at line 40 of file vgui_simple_field.h.


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