Parameter Class Reference

#include <Parameter.hpp>

Inheritance diagram for Parameter:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Type { Double, Integer, String, Enum }

Public Member Functions

virtual void get (IdentifierSet &I)=0
virtual void reset ()=0
virtual void set (const real_t d)=0
virtual void set (const int i)=0
virtual void set (const char *)=0
void set (const std::string &s)
virtual const std::string typeName () const =0
const Typetype () const
const char * label () const
 Parameter (const Parameter &pv)
 Parameter (const Parameter::Type t, const char *label)
virtual ~Parameter ()

Protected Attributes

Type __type

Private Member Functions

virtual std::ostream & put (std::ostream &) const =0

Private Attributes

const char * __label
const char * __description

Friends

std::ostream & operator<< (std::ostream &os, const Parameter &P)


Detailed Description

Defines the association of a keyword and its value.

Author:
Stephane Del Pino

Definition at line 38 of file Parameter.hpp.


Member Enumeration Documentation

Enumerator:
Double 
Integer 
String 
Enum 

Definition at line 41 of file Parameter.hpp.

00041             {
00042     Double,
00043     Integer,
00044     String,
00045     Enum
00046   };


Constructor & Destructor Documentation

Parameter::Parameter ( const Parameter pv  )  [inline]

Definition at line 87 of file Parameter.hpp.

00088     : __type(pv.__type),
00089       __label(pv.__label)
00090   {
00091     ;
00092   }

Parameter::Parameter ( const Parameter::Type  t,
const char *  label 
) [inline]

Definition at line 94 of file Parameter.hpp.

00095     : __type(t),
00096       __label(label)
00097   {
00098     ;
00099   }

virtual Parameter::~Parameter (  )  [inline, virtual]

Definition at line 101 of file Parameter.hpp.

00102   {
00103     ;
00104   }


Member Function Documentation

virtual std::ostream& Parameter::put ( std::ostream &   )  const [private, pure virtual]

virtual void Parameter::get ( IdentifierSet I  )  [pure virtual]

virtual void Parameter::reset (  )  [pure virtual]

virtual void Parameter::set ( const real_t  d  )  [pure virtual]

virtual void Parameter::set ( const int  i  )  [pure virtual]

virtual void Parameter::set ( const char *   )  [pure virtual]

void Parameter::set ( const std::string &  s  )  [inline]

Definition at line 67 of file Parameter.hpp.

00067                                {
00068     set(s.c_str());
00069   }

virtual const std::string Parameter::typeName (  )  const [pure virtual]

const Type& Parameter::type (  )  const [inline]

Definition at line 74 of file Parameter.hpp.

References __type.

00075   {
00076     return __type;
00077   }

const char * Parameter::label (  )  const

Definition at line 26 of file Parameter.cpp.

References __label.

00027 {
00028   return __label;
00029 }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Parameter P 
) [friend]

Definition at line 79 of file Parameter.hpp.

00081   {
00082     return P.put(os);
00083   }


Member Data Documentation

Type Parameter::__type [protected]

Definition at line 49 of file Parameter.hpp.

Referenced by type().

const char* Parameter::__label [private]

Definition at line 52 of file Parameter.hpp.

Referenced by label().

const char* Parameter::__description [private]

Definition at line 54 of file Parameter.hpp.


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

Generated on Wed Nov 19 00:11:12 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6