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

ParseOptions::DataElement Class Reference

#include <ParseOptions.h>

List of all members.

Public Types

enum  data_types {
  UNDEF, FLOAT, VECTOR, UINT,
  INT, BOOL, STRINGLIST, STRING
}

Public Member Functions

 ~DataElement (void)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, BigReal *ptr, BigReal defalt)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, BigReal *ptr)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, Vector *ptr, Vector defalt)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, Vector *ptr)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, int *ptr, int defalt)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, int *ptr)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, unsigned int *ptr, unsigned int defalt)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, unsigned int *ptr)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, StringList **ptr, int many_allowed=FALSE)
 DataElement (const char *newname, const char *newparent, int optional, const char *err, char *ptr)

Public Attributes

int index
char * name
int is_optional
int is_defined
char * parent
DataElementparent_ptr
char * error_message
data_types type
int has_default
int many_allowed
Vector vdef
Vector vdata
Range range
Units units
BigReal fdef
int idef
unsigned int uidef
BigRealfptr
int * iptr
unsigned int * uiptr
Vectorvptr
StringList ** slptr
char * sptr
BigReal fdata
int idata
int uidata
StringListsldata


Member Enumeration Documentation

enum ParseOptions::DataElement::data_types
 

Enumeration values:
UNDEF 
FLOAT 
VECTOR 
UINT 
INT 
BOOL 
STRINGLIST 
STRING 

Definition at line 47 of file ParseOptions.h.

00047 {UNDEF, FLOAT, VECTOR, UINT, INT, BOOL, STRINGLIST, STRING};


Constructor & Destructor Documentation

ParseOptions::DataElement::~DataElement void   ) 
 

Definition at line 185 of file ParseOptions.C.

00185                                           {
00186    if (name) delete[] name;
00187    if (parent) delete[] parent;
00188    if (error_message) delete[] error_message;
00189 }

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
BigReal ptr,
BigReal  defalt
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
BigReal ptr
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
Vector ptr,
Vector  defalt
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
Vector ptr
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
int *  ptr,
int  defalt
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
int *  ptr
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
unsigned int *  ptr,
unsigned int  defalt
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
unsigned int *  ptr
 

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
StringList **  ptr,
int  many_allowed = FALSE
 

Definition at line 173 of file ParseOptions.C.

References has_default, many_allowed, slptr, and type.

00176 {
00177    init(newname, newparent, optional, err);
00178    type = DataElement::STRINGLIST;
00179    slptr = ptr;
00180    has_default = FALSE;
00181    many_allowed = many;
00182 }

ParseOptions::DataElement::DataElement const char *  newname,
const char *  newparent,
int  optional,
const char *  err,
char *  ptr
 


Member Data Documentation

char* ParseOptions::DataElement::error_message
 

Definition at line 54 of file ParseOptions.h.

Referenced by ParseOptions::set().

BigReal ParseOptions::DataElement::fdata
 

Definition at line 74 of file ParseOptions.h.

Referenced by ParseOptions::get(), and ParseOptions::set().

BigReal ParseOptions::DataElement::fdef
 

Definition at line 59 of file ParseOptions.h.

Referenced by ParseOptions::set().

BigReal* ParseOptions::DataElement::fptr
 

Definition at line 66 of file ParseOptions.h.

int ParseOptions::DataElement::has_default
 

Definition at line 56 of file ParseOptions.h.

Referenced by DataElement(), and ParseOptions::set().

int ParseOptions::DataElement::idata
 

Definition at line 75 of file ParseOptions.h.

Referenced by ParseOptions::get(), and ParseOptions::set().

int ParseOptions::DataElement::idef
 

Definition at line 60 of file ParseOptions.h.

Referenced by ParseOptions::set().

int ParseOptions::DataElement::index
 

Definition at line 48 of file ParseOptions.h.

Referenced by ParseOptions::set().

int* ParseOptions::DataElement::iptr
 

Definition at line 67 of file ParseOptions.h.

int ParseOptions::DataElement::is_defined
 

Definition at line 51 of file ParseOptions.h.

Referenced by ParseOptions::defined(), ParseOptions::get(), ParseOptions::num(), and ParseOptions::set().

int ParseOptions::DataElement::is_optional
 

Definition at line 50 of file ParseOptions.h.

Referenced by ParseOptions::set().

int ParseOptions::DataElement::many_allowed
 

Definition at line 57 of file ParseOptions.h.

Referenced by DataElement(), ParseOptions::num(), and ParseOptions::set().

char* ParseOptions::DataElement::name
 

Definition at line 49 of file ParseOptions.h.

Referenced by ParseOptions::check_consistancy(), and ParseOptions::set().

char* ParseOptions::DataElement::parent
 

Definition at line 52 of file ParseOptions.h.

Referenced by ParseOptions::check_consistancy().

DataElement* ParseOptions::DataElement::parent_ptr
 

Definition at line 53 of file ParseOptions.h.

Referenced by ParseOptions::check_consistancy(), and ParseOptions::set().

Range ParseOptions::DataElement::range
 

Definition at line 80 of file ParseOptions.h.

Referenced by ParseOptions::range().

StringList* ParseOptions::DataElement::sldata
 

Definition at line 77 of file ParseOptions.h.

Referenced by ParseOptions::get(), and ParseOptions::set().

StringList** ParseOptions::DataElement::slptr
 

Definition at line 70 of file ParseOptions.h.

Referenced by DataElement().

char* ParseOptions::DataElement::sptr
 

Definition at line 71 of file ParseOptions.h.

data_types ParseOptions::DataElement::type
 

Definition at line 55 of file ParseOptions.h.

Referenced by DataElement(), ParseOptions::get(), ParseOptions::ParseOptions(), and ParseOptions::set().

int ParseOptions::DataElement::uidata
 

Definition at line 76 of file ParseOptions.h.

Referenced by ParseOptions::set().

unsigned int ParseOptions::DataElement::uidef
 

Definition at line 61 of file ParseOptions.h.

Referenced by ParseOptions::set().

unsigned int* ParseOptions::DataElement::uiptr
 

Definition at line 68 of file ParseOptions.h.

Units ParseOptions::DataElement::units
 

Definition at line 81 of file ParseOptions.h.

Referenced by ParseOptions::units().

Vector ParseOptions::DataElement::vdata
 

Definition at line 79 of file ParseOptions.h.

Referenced by ParseOptions::get(), and ParseOptions::set().

Vector ParseOptions::DataElement::vdef
 

Definition at line 64 of file ParseOptions.h.

Referenced by ParseOptions::set().

Vector* ParseOptions::DataElement::vptr
 

Definition at line 69 of file ParseOptions.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 3 04:08:16 2008 for NAMD by  doxygen 1.3.9.1